You are here

function om_tools_process_html in OM Tools 7

Same name and namespace in other branches
  1. 8.2 om_tools.module \om_tools_process_html()
  2. 8 om_tools.module \om_tools_process_html()
  3. 7.2 om_tools.module \om_tools_process_html()

Override or insert om variables into the templates.

File

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

Code

function om_tools_process_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 . '_process_html';
    if (function_exists($function)) {
      $function($vars);
    }
  }
}