function views_fetch_handler_data in Views (for Drupal 7) 6.3
Same name and namespace in other branches
- 6.2 includes/handlers.inc \views_fetch_handler_data()
Fetch the handler data from cache.
1 call to views_fetch_handler_data()
- views_include_handler in includes/
handlers.inc - Attempt to find the include file for a given handler from its definition.
File
- includes/
handlers.inc, line 128 - handlers.inc Defines the various handler objects to help build and display views.
Code
function views_fetch_handler_data($handler = NULL, $reset = NULL) {
static $cache = NULL;
if (!isset($cache) || $reset) {
$start = views_microtime();
$cache = views_discover_handlers();
vpr('Views handlers build time: ' . (views_microtime() - $start) * 1000 . ' ms');
}
if (!$handler) {
return $cache;
}
else {
if (isset($cache[$handler])) {
return $cache[$handler];
}
}
// Return an empty array if there is no match.
return array();
}