You are here

function om_tools_preprocess_page in OM Tools 7

Same name and namespace in other branches
  1. 8.2 om_tools.module \om_tools_preprocess_page()
  2. 8 om_tools.module \om_tools_preprocess_page()
  3. 6.2 om_tools.module \om_tools_preprocess_page()
  4. 6 om_tools.module \om_tools_preprocess_page()
  5. 7.2 om_tools.module \om_tools_preprocess_page()

Override or insert om variables into the templates.

File

./om_tools.module, line 142
This is a collection of OM Tools.

Code

function om_tools_preprocess_page(&$vars) {
  $tools = om_tools_get();
  foreach ($tools as $key => $tool_name) {
    include_once drupal_get_path('module', 'om_tools') . '/tools/' . $tool_name . '/' . $tool_name . '.inc';
    $function = 'om_' . $tool_name . '_preprocess_page';
    if (function_exists($function)) {
      $function($vars);
    }
  }
}