function drupalforfirebug_get_sql_log in Drupal For Firebug 6
Same name and namespace in other branches
- 5 drupalforfirebug.module \drupalforfirebug_get_sql_log()
- 7.2 drupalforfirebug.module \drupalforfirebug_get_sql_log()
- 7 drupalforfirebug.module \drupalforfirebug_get_sql_log()
Output Function to Return the Results of the SQL Log
1 call to drupalforfirebug_get_sql_log()
- drupalforfirebug_shutdown in ./
drupalforfirebug.module - Output Function to Return Hidden Div Containers in Footer
File
- ./
drupalforfirebug.module, line 150
Code
function drupalforfirebug_get_sql_log() {
$output = '<fieldset>';
if (!module_exists('devel')) {
$output .= '<legend>' . t('Devel Module is Not Installed') . '</legend>';
$output .= t('Please install and enable the Devel Module to display the SQL queries.');
}
elseif (!variable_get('dev_query', 0)) {
$output .= '<legend>' . t('Query Logging is Not Enabled') . '</legend>';
$output .= t('Please enable "Collect query info" in the Devel Module Settings (admin/settings/devel) to use this feature.');
}
else {
global $queries;
list($counts, $query_summary) = devel_query_summary();
$output .= '<legend>' . t('SQL Query Log') . '</legend>';
$output .= $query_summary;
$output .= drupalforfirebug_devel_query_table($queries, $counts);
}
$output .= '</fieldset>';
return $output;
}