function devel_debug_log_page in Devel Debug Log 7
Displays the debug messages table.
1 string reference to 'devel_debug_log_page'
- devel_debug_log_menu in ./
devel_debug_log.module - Implements hook_menu().
File
- ./
devel_debug_log.module, line 87 - Creates a page that shows debug messages.
Code
function devel_debug_log_page() {
// Add auto-refresh javascript on the first page only.
if (!isset($_GET['page'])) {
drupal_add_js(array(
'devel_debug_log' => array(
'log_refresh_frequency' => variable_get('devel_debug_refresh_frequency', 5),
),
), 'setting');
drupal_add_js(drupal_get_path('module', 'devel_debug_log') . '/devel_debug_log.js');
}
$table_page = array(
'devel_debug_log_clear_log_form' => drupal_get_form('devel_debug_log_clear_log_form'),
'devel_debug_log_refresh_frequency_form' => drupal_get_form('devel_debug_log_refresh_frequency_form'),
'messages_table' => devel_debug_log_get_messages_table(),
'pager' => array(
'#theme' => 'pager',
),
);
return $table_page;
}