function om_tools_preprocess_html in OM Tools 7
Same name and namespace in other branches
- 8.2 om_tools.module \om_tools_preprocess_html()
 - 8 om_tools.module \om_tools_preprocess_html()
 - 7.2 om_tools.module \om_tools_preprocess_html()
 
Override or insert om variables into the templates.
File
- ./
om_tools.module, line 116  - This is a collection of OM Tools.
 
Code
function om_tools_preprocess_html(&$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_html';
    if (function_exists($function)) {
      $function($vars);
    }
  }
}