You are here

function pace_preprocess_html in PACE - Page load progress bar 7

Same name and namespace in other branches
  1. 8 pace.module \pace_preprocess_html()
  2. 2.0.x pace.module \pace_preprocess_html()

Implements template_preprocess_html().

File

./pace.module, line 40
Loads PACE js.

Code

function pace_preprocess_html(&$variables) {

  // Check if PACE is disabled for admin pages and don't load it.
  if (!variable_get('pace_load_on_admin_enabled')) {
    if (!path_is_admin(current_path())) {
      load_pace();
    }
  }
  else {
    load_pace();
  }
}