function views_skinr_elements in Skinr 7.2
Same name and namespace in other branches
- 8.2 modules/views.skinr.inc \views_skinr_elements()
Implements hook_skinr_elements().
File
- modules/
views.skinr.inc, line 83 - Implements Skinr hooks for views.module.
Code
function views_skinr_elements($variables, $hook, $op) {
$elements = array();
if ($op == 'preprocess' && $hook == 'views_view') {
$elements['views'] = array(
$variables['view']->name . '__' . $variables['view']->current_display,
);
}
elseif ($op == 'contextual_links' && $hook == 'page' && isset($variables['page']['#views_contextual_links_info'])) {
// Contextual links for views are on 'page' hook, not 'views_view'.
$elements['views'] = array(
$variables['page']['#views_contextual_links_info']['views_ui']['view_name'] . '__' . $variables['page']['#views_contextual_links_info']['views_ui']['view_display_id'],
);
}
return $elements;
}