function drupalforfirebug_footer in Drupal For Firebug 5
Output Function to Return Hidden Div Containers in Footer
File
- ./
drupalforfirebug.module, line 202
Code
function drupalforfirebug_footer() {
if (user_access('Access Firebug Debug')) {
$output = '<div style="display: none" id="drupalforfirebug_general">';
$output .= '<h4>Drupal for Firebug General Messages</h4>';
$general_messages = drupalforfirebug_get('general');
$output .= $general_messages;
if (!$general_messages) {
$output .= '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 .= '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 .= '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 .= '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 .= 'There was no views processing.';
}
}
else {
$output .= 'The views module is not installed.';
}
$output .= '</div>';
$output .= '<div style="display: none" id="drupalforfirebug_php">';
$output .= drupalforfirebug_get_php_exec_area();
$output .= '</div>';
}
return $output;
}