function 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
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();
}