You are here

function om_node_preprocess_page in OM Tools 7

Same name and namespace in other branches
  1. 8 tools/node/node.inc \om_node_preprocess_page()
  2. 6.2 tools/node/node.inc \om_node_preprocess_page()
  3. 6 tools/node/node.inc \om_node_preprocess_page()

Override or insert om variables into the templates.

File

tools/node/node.inc, line 165
Body Classes Utility

Code

function om_node_preprocess_page(&$vars) {
  $vars['om_tools_title'] = drupal_get_title();
  if (variable_get('om_tools_node_tools_switch', 1)) {
    if (!$vars['is_front']) {
      if (arg(0) == 'node') {
        $node_type = $vars['page']['#type'];
        if (variable_get('om_tools_node_' . $node_type . '_titles', 0)) {
          $vars['om_tools_title'] = '';
        }
      }
    }

    //dsm($vars);
  }
}