function messaging_debug_form_alter in Messaging 5
Same name and namespace in other branches
- 6 messaging_debug/messaging_debug.module \messaging_debug_form_alter()
- 6.2 messaging_debug/messaging_debug.module \messaging_debug_form_alter()
- 6.3 messaging_debug/messaging_debug.module \messaging_debug_form_alter()
Implementation of hook_form_alter()
File
- messaging_debug/
messaging_debug.module, line 38 - Simple messaging using html page. Messaging method plug-in
Code
function messaging_debug_form_alter($form_id, &$form) {
if ($form_id == 'messaging_admin_settings') {
$form['general']['messaging_debug'] = array(
'#title' => t('Debug mode'),
'#type' => 'radios',
'#options' => array(
t('Disabled'),
t('Enabled'),
),
'#default_value' => variable_get('messaging_debug', 0),
'#description' => t('If enabled, messages wont be sent out but logged to watchdog, and displayed in the page footer.'),
);
}
}