function views_ui_plugin_list

Lists all plugins and what enabled Views use them.

1 string reference to 'views_ui_plugin_list'
views_ui_menu in ./views_ui.module
Implements hook_menu().

File

includes/admin.inc, line 5601

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']);
    }
    unset($row);
    // 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.'),
    );
}