Révision 6ff32cea
Ajouté par Florent Torregrosa il y a environ 9 ans
drupal7/modules/node/node.api.php | ||
---|---|---|
1299 | 1299 |
* The node to be displayed, as returned by node_load(). |
1300 | 1300 |
* @param $view_mode |
1301 | 1301 |
* View mode, e.g. 'full', 'teaser', ... |
1302 |
* @param $langcode |
|
1303 |
* (optional) A language code to use for rendering. Defaults to the global |
|
1304 |
* content language of the current request. |
|
1305 |
* |
|
1302 | 1306 |
* @return |
1303 | 1307 |
* The passed $node parameter should be modified as necessary and returned so |
1304 | 1308 |
* it can be properly presented. Nodes are prepared for display by assembling |
... | ... | |
1312 | 1316 |
* |
1313 | 1317 |
* @ingroup node_api_hooks |
1314 | 1318 |
*/ |
1315 |
function hook_view($node, $view_mode) { |
|
1319 |
function hook_view($node, $view_mode, $langcode = NULL) {
|
|
1316 | 1320 |
if ($view_mode == 'full' && node_is_page($node)) { |
1317 | 1321 |
$breadcrumb = array(); |
1318 | 1322 |
$breadcrumb[] = l(t('Home'), NULL); |
Formats disponibles : Unified diff
Update core to 7.36