function disable_messages_page_alter in Disable Messages 7
Same name and namespace in other branches
- 8 disable_messages.module \disable_messages_page_alter()
Implements hook_page_alter().
File
- ./
disable_messages.module, line 253 - The disable_messages module file.
Code
function disable_messages_page_alter(&$page) {
if (variable_get('disable_messages_enable_debug', '1')) {
$page['page_bottom']['disable_messages_debug'] = array(
'#type' => 'markup',
'#markup' => '',
'#pre_render' => array(
'disable_message_pre_render_debug_output',
),
);
}
}