You are here

function messaging_debug_form_alter in Messaging 6

Same name and namespace in other branches
  1. 5 messaging_debug/messaging_debug.module \messaging_debug_form_alter()
  2. 6.2 messaging_debug/messaging_debug.module \messaging_debug_form_alter()
  3. 6.3 messaging_debug/messaging_debug.module \messaging_debug_form_alter()

Implementation of hook_form_alter()

File

messaging_debug/messaging_debug.module, line 137
Simple messaging using html page. Messaging method plug-in

Code

function messaging_debug_form_alter(&$form, $form_state, $form_id) {
  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.'),
    );
  }
}