function views_fetch_plugin_names

cis7 views.module views_fetch_plugin_names($type, $key = NULL, $base = array())
cle7 views.module views_fetch_plugin_names($type, $key = NULL, $base = array())
elmsmedia7 views.module views_fetch_plugin_names($type, $key = NULL, $base = array())
icor7 views.module views_fetch_plugin_names($type, $key = NULL, $base = array())
meedjum_blog7 views.module views_fetch_plugin_names($type, $key = NULL, $base = array())
mooc7 views.module views_fetch_plugin_names($type, $key = NULL, $base = array())

Fetch a list of all base tables available

Parameters

$type: Either 'display', 'style' or 'row'

$key: For style plugins, this is an optional type to restrict to. May be 'normal', 'summary', 'feed' or others based on the neds of the display.

$base: An array of possible base tables.

Return value

A keyed array of in the form of 'base_table' => 'Description'.

8 calls to views_fetch_plugin_names()
ViewsUiBaseViewsWizard::build_form in sites/all/modules/ulmus/views/plugins/views_wizard/views_ui_base_views_wizard.class.php
For AJAX callbacks to build other elements in the "show" form.
ViewsUiBaseViewsWizard::row_style_options in sites/all/modules/ulmus/views/plugins/views_wizard/views_ui_base_views_wizard.class.php
Add possible row style options.
views_content_plugin_display_ctools_context::options_form in sites/all/modules/ulmus/ctools/views_content/plugins/views/views_content_plugin_display_ctools_context.inc
Provide the default form for setting options.
views_get_enabled_display_extenders in sites/all/modules/ulmus/views/includes/plugins.inc
Get enabled display extenders.
views_plugin_display::options_form in sites/all/modules/ulmus/views/plugins/views_plugin_display.inc
Provide the default form for setting options.

... See full list

File

sites/all/modules/ulmus/views/views.module, line 1275
Primarily Drupal hooks and global API functions to manipulate views.

Code

function views_fetch_plugin_names($type, $key = NULL, $base = array()) {
  $data = views_fetch_plugin_data();

  $plugins[$type] = array();

  foreach ($data[$type] as $id => $plugin) {
    // Skip plugins that don't conform to our key.
    if ($key && (empty($plugin['type']) || $plugin['type'] != $key)) {
      continue;
    }
    if (empty($plugin['no ui']) && (empty($base) || empty($plugin['base']) || array_intersect($base, $plugin['base']))) {
      $plugins[$type][$id] = $plugin['title'];
    }
  }

  if (!empty($plugins[$type])) {
    asort($plugins[$type]);
    return $plugins[$type];
  }
  // fall-through
  return array();
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.