You are here

function views_skinr_preprocess_index_handler in Skinr 6

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

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 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_data in modules/views.skinr.inc
Implementation of hook_skinr_data().

File

modules/views.skinr.inc, line 287
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;
  }
}