You are here

function browserclass_preprocess_html in Browser Class 7

Implements hook_preprocess_HOOK().

File

./browserclass.module, line 74
Provides Browser Class settings form, permission, and browser detection.

Code

function browserclass_preprocess_html(&$variables) {
  if (variable_get('browserclass_operation', BROWSERCLASS_OPERATION_WITHOUT_JS) == BROWSERCLASS_OPERATION_WITHOUT_JS && variable_get('cache', 0) == 0 && ($browser_classes = browserclass_get_classes())) {
    $variables['classes_array'] = array_merge($variables['classes_array'], $browser_classes);
    $variables['browser_classes'] = $browser_classes;
  }
}