function bartik_preprocess_node

Same name in other branches
  1. 9 core/themes/bartik/bartik.theme \bartik_preprocess_node()
  2. 8.9.x 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';
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.