1.20.x views_ui.admin.inc | views_ui_plugin_list() |
Lists all plugins and what enabled Views use them.
File
- modules/
views_ui/ views_ui.admin.inc, line 4899 - Admin page callbacks for the Views UI module.
Code
function views_ui_plugin_list() {
$rows = views_plugin_list();
foreach ($rows as &$row) {
// Link each view name to the view itself.
foreach ($row['views'] as $row_name => $view) {
$row['views'][$row_name] = l($view, "admin/structure/views/view/$view");
}
$row['views'] = implode(', ', $row['views']);
}
// Sort rows by field name.
ksort($rows);
return array(
'#theme' => 'table',
'#header' => array(t('Type'), t('Name'), t('Provided by'), t('Used in')),
'#rows' => $rows,
'#empty' => t('There are no enabled views.'),
);
}