You are here

function om_system_preprocess_html in OM Tools 8

Same name and namespace in other branches
  1. 8.2 tools/system/system.inc \om_system_preprocess_html()
  2. 7.2 tools/system/system.inc \om_system_preprocess_html()
  3. 7 tools/system/system.inc \om_system_preprocess_html()

Override or insert om variables into the templates.

File

tools/system/system.inc, line 74
System Utility

Code

function om_system_preprocess_html(&$vars) {
  if (variable_get('om_tools_mediaqueries_switch', 0)) {

    /**
     * Mediaqueries
     * http://plugins.jquery.com/project/MediaQueries
     *
     * - rename jquery.mediaqueries.js to mediaqueries.js
     *
     */
    drupal_add_js(drupal_get_path('module', 'om_tools') . '/contrib/mediaqueries.js', 'file');
  }
}