function performance_clear_access in Performance Logging and Monitoring 6
Same name and namespace in other branches
- 7 performance.module \performance_clear_access()
Access callback for the clear logs page.
1 string reference to 'performance_clear_access'
- performance_menu in ./
performance.module - Implementation of hook_menu().
File
- ./
performance.module, line 118 - Logs detailed and/or summary page generation time and memory consumption for page requests. Copyright Khalid Baheyeldin 2008 of http://2bits.com
Code
function performance_clear_access() {
$sum = array();
$access = TRUE;
foreach (performance_data_stores() as $store => $data) {
$sum[] = $data['#enabled'];
}
$go = array_sum($sum);
if (!$go) {
$access = FALSE;
}
return $access;
}