function views_skinr_theme_hooks in Skinr 7.2
Same name and namespace in other branches
- 8.2 modules/views.skinr.inc \views_skinr_theme_hooks()
Implements hook_skinr_theme_hooks().
File
- modules/
views.skinr.inc, line 52 - Implements Skinr hooks for views.module.
Code
function views_skinr_theme_hooks($module, $element) {
$theme_hooks = array();
if ($module == 'views') {
list($name, $display_id) = explode('__', $element, 2);
if ($view = views_get_view($name)) {
$view
->execute_display($display_id);
$display = $view->display[$view->current_display];
// Create list of suggested templates.
$theme_hooks = views_theme_functions('views_view', $view, $display);
// @todo Determine whether below code is still relevant.
/*
// Fetch additional style based suggested templates.
$additional_hooks = views_theme_functions($display->display_plugin, $view, $display);
$theme_hooks = array_merge($additional_hooks, $theme_hooks);
*/
}
else {
$theme_hooks[] = 'views_view';
}
}
return $theme_hooks;
}