1 views_ui.module | _views_ui_get_displays_list($view) |
Helper function to get a list of displays included in a view.
Parameters
$view: The view.
Return value
An array of display types that this view includes.:
File
- core/
modules/ views_ui/ views_ui.module, line 1019 - Provide structure for the administrative interface to Views.
Code
function _views_ui_get_displays_list($view) {
$displays = array();
foreach ($view->display as $display) {
if (!empty($display->handler->definition['admin'])) {
$displays[$display->handler->definition['admin']] = TRUE;
}
}
if ($displays) {
ksort($displays);
$displays = array_keys($displays);
}
return $displays;
}