function views_skinr_ui_element_options in Skinr 7.2
Same name and namespace in other branches
- 8.2 modules/views.skinr.inc \views_skinr_ui_element_options()
Implements hook_skinr_ui_element_options().
File
- modules/
views.skinr.inc, line 18 - Implements Skinr hooks for views.module.
Code
function views_skinr_ui_element_options($theme_name = NULL) {
$options = array(
'views' => array(),
);
$views = views_get_all_views();
// Load all enabled blocks.
foreach ($views as $view) {
foreach ($view->display as $display) {
$name = $view->name . '__' . $display->id;
// Fake indentation for views sub-items for better visual result.
$options['views']['   ' . $view->human_name][$name] = $display->display_title;
}
}
ksort($options['views']);
return $options;
}