function _views_fetch_plugin_data

cis7 cache.inc _views_fetch_plugin_data($type = NULL, $plugin = NULL, $reset = FALSE)
cle7 cache.inc _views_fetch_plugin_data($type = NULL, $plugin = NULL, $reset = FALSE)
elmsmedia7 cache.inc _views_fetch_plugin_data($type = NULL, $plugin = NULL, $reset = FALSE)
icor7 cache.inc _views_fetch_plugin_data($type = NULL, $plugin = NULL, $reset = FALSE)
meedjum_blog7 cache.inc _views_fetch_plugin_data($type = NULL, $plugin = NULL, $reset = FALSE)
mooc7 cache.inc _views_fetch_plugin_data($type = NULL, $plugin = NULL, $reset = FALSE)

Fetch the plugin data from cache.

1 call to _views_fetch_plugin_data()
views_fetch_plugin_data in sites/all/modules/ulmus/views/views.module
Fetch the plugin data from cache.

File

sites/all/modules/ulmus/views/includes/cache.inc, line 117
Load Views' data so that it knows what is available to build queries from.

Code

function _views_fetch_plugin_data($type = NULL, $plugin = NULL, $reset = FALSE) {
  static $cache = NULL;
  if (!isset($cache) || $reset) {
    $start = microtime(TRUE);
    views_include('plugins');
    views_include_handlers();

    $cache = views_discover_plugins();

  }

  if (!$type && !$plugin) {
    return $cache;
  }
  elseif (!$plugin) {
    // Not in the if above so the else below won't run
    if (isset($cache[$type])) {
      return $cache[$type];
    }
  }
  elseif (isset($cache[$type][$plugin])) {
    return $cache[$type][$plugin];
  }

  // Return an empty array if there is no match.
  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.