You are here

function performance_clear_access in Performance Logging and Monitoring 7

Same name and namespace in other branches
  1. 6 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 123
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;
}