You are here

function conditional_styles_preprocess_page in Conditional Stylesheets 6

Implements MODULE_preprocess_page().

File

./conditional_styles.module, line 13

Code

function conditional_styles_preprocess_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'];
}