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 drupal/core/modules/views/views_ui/views_ui.module
Implements hook_menu().

File

drupal/core/modules/views/views_ui/admin.inc, line 2338
Provides the Views' administrative interface.

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.'),
  );
}