function drupalforfirebug_shutdown in Drupal For Firebug 7
Same name and namespace in other branches
- 6 drupalforfirebug.module \drupalforfirebug_shutdown()
- 7.2 drupalforfirebug.module \drupalforfirebug_shutdown()
Output Function to Return Hidden Div Containers in Footer
1 string reference to 'drupalforfirebug_shutdown'
- drupalforfirebug_exit in ./
drupalforfirebug.module - Implementation of hook_example()
File
- ./
drupalforfirebug.module, line 333
Code
function drupalforfirebug_shutdown() {
if (!user_access('Access Firebug Debug')) {
return;
}
$output = '<div style="display: none" id="drupalforfirebug_general">';
$output .= '<fieldset>';
$output .= '<legend>' . t('Drupal for Firebug General Messages') . '</legend>';
$general_messages = drupalforfirebug_get('general');
$output .= $general_messages;
if (!$general_messages) {
$output .= t('There were no messages sent to the general log. Please use "firep($item, $optional_title)" to output messages to this console.');
}
$output .= '</div>';
$output .= '<div style="display: none" id="drupalforfirebug_sql">';
$output .= drupalforfirebug_get_sql_log();
$output .= '</div>';
$output .= '<div style="display: none" id="drupalforfirebug_hook_form_alter">';
$output .= $form_alter_output = drupalforfirebug_get('hook_form_alter');
if (!$form_alter_output) {
$output .= t('There was no form altering.');
}
$output .= '</div>';
$output .= '<div style="display: none" id="drupalforfirebug_hook_user">';
$output .= $user_output = drupalforfirebug_get('hook_user');
if (!$user_output) {
$output .= t('There was no user processing.');
}
$output .= '</div>';
$output .= '<div style="display: none" id="drupalforfirebug_hook_nodeapi">';
$output .= $node_api_output = drupalforfirebug_get('hook_nodeapi');
if (!$node_api_output) {
$output .= t('There was no node processing.');
}
$output .= '</div>';
$output .= '<div style="display: none" id="drupalforfirebug_hook_views">';
if (module_exists('views')) {
$output .= $views_output = drupalforfirebug_get('hook_views');
if (!$views_output) {
$output .= t('There was no views processing.');
}
}
else {
$output .= t('The views module is not installed.');
}
$output .= '</div>';
$output .= '<div style="display: none" id="drupalforfirebug_hook_page_alter">';
$output .= $page_output = drupalforfirebug_get('hook_page_alter');
if (!$page_output) {
$output .= t('There was no page processing.');
}
$output .= '</div>';
$output .= '<div style="display: none" id="drupalforfirebug_php">';
$output .= drupalforfirebug_get_php_exec_area();
$output .= '</div>';
print $output;
unset($GLOBALS['dfp_runtime']);
}