You are here

function page_skinr_preprocess_index_handler in Skinr 6.2

Skinr preprocess index handler.

Parameters

&$vars: Passes in the $vars parameter from module_preprocess().

Return value

The index where we can find our values in Skinr's data structure. If an array is returned, it will loop through each index in Skinr's data structure and merge the returned classes.

Related topics

1 string reference to 'page_skinr_preprocess_index_handler'
skinr_skinr_config in modules/skinr.skinr.inc
Implementation of hook_skinr_config().

File

modules/skinr.skinr.inc, line 84
Provide skinr handling for page level rules.

Code

function page_skinr_preprocess_index_handler(&$vars) {
  $rules = skinr_rule_load();

  // Find any page level skinr options and return an array of them.
  $indices = array();
  foreach ($rules as $rule) {
    if (skinr_rule_visible($rule->rid)) {
      $indices[] = $rule->rid;
    }
  }
  return $indices;
}