You are here

function conditional_styles_preprocess_maintenance_page in Conditional Stylesheets 6

Same name and namespace in other branches
  1. 7.2 conditional_styles.module \conditional_styles_preprocess_maintenance_page()

Implements MODULE_preprocess_maintenance_page().

File

./conditional_styles.module, line 23

Code

function conditional_styles_preprocess_maintenance_page(&$vars, $hook) {

  // Add a $conditional_styles variable and append them to $styles.
  $language = $GLOBALS['language']->direction == LANGUAGE_RTL ? '_rtl' : '';
  $vars['conditional_styles'] = variable_get('conditional_styles_' . $GLOBALS['theme'] . $language, '');
  $vars['styles'] .= $vars['conditional_styles'];
}