You are here

function views_skinr_preprocess_index_handler in Skinr 6.2

Same name and namespace in other branches
  1. 6 modules/views.skinr.inc \views_skinr_preprocess_index_handler()

Skinr preprocess index handler.

Parameters

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

Return value

The index where we can find our values in Skinrs 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 'views_skinr_preprocess_index_handler'
views_skinr_config in modules/views.skinr.inc
Implementation of hook_skinr_config().

File

modules/views.skinr.inc, line 355
Provide skinr handling for node.module

Code

function views_skinr_preprocess_index_handler(&$vars) {
  $default = $vars['view']->display_handler
    ->is_defaulted('style_options');
  if ($default) {
    return 'view-' . $vars['view']->name . '-display-default';
  }
  else {
    return 'view-' . $vars['view']->name . '-display-' . $vars['view']->current_display;
  }
}