function bartik_preprocess_node in Drupal 7
Same name and namespace in other branches
- 8 core/themes/bartik/bartik.theme \bartik_preprocess_node()
- 9 core/themes/bartik/bartik.theme \bartik_preprocess_node()
Override or insert variables into the node template.
File
- themes/
bartik/ template.php, line 111
Code
function bartik_preprocess_node(&$variables) {
if ($variables['view_mode'] == 'full' && node_is_page($variables['node'])) {
$variables['classes_array'][] = 'node-full';
}
}