function pmpapi_get_custom_caches in Public Media Platform API Integration 7
Scrapes $conf to determine all possible cache bins.
Return value
array A list of all possible cache bins
1 call to pmpapi_get_custom_caches()
- pmpapi_config_form in ./
pmpapi.admin.inc - Form constructor for the PMPAPI admin form.
File
- ./
pmpapi.admin.inc, line 117 - Basic admin forms, validators, and submit handlers for the PMPAPI module.
Code
function pmpapi_get_custom_caches() {
global $conf;
$bins = array();
foreach ($conf as $name => $value) {
if (stripos($name, 'cache_class_') === 0) {
$bins[] = str_ireplace('cache_class_', '', $name);
}
}
return $bins;
}