You are here

function performance_enabled_db in Performance Logging and Monitoring 7

Same name and namespace in other branches
  1. 6 performance.module \performance_enabled_db()

Helper function to check if Detailed logging is enabled.

Parameters

$form whether or not we're called from the settings form:

$message whether or not to display an additional message:

Return value

boolean

See also

performance_data_stores()

File

./performance.module, line 802
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_enabled_db($form = FALSE, $message = FALSE) {
  $setting = variable_get('performance_summary_db', 0);
  if ($form) {
    $setting = TRUE;
  }
  return $setting;
}