You are here

function messaging_phpmailer_settings_form in Messaging 6

Same name and namespace in other branches
  1. 6.4 messaging_phpmailer/messaging_phpmailer.module \messaging_phpmailer_settings_form()
  2. 6.2 messaging_phpmailer/messaging_phpmailer.module \messaging_phpmailer_settings_form()
  3. 6.3 messaging_phpmailer/messaging_phpmailer.module \messaging_phpmailer_settings_form()

Settings form callback

1 string reference to 'messaging_phpmailer_settings_form'
messaging_phpmailer_menu in messaging_phpmailer/messaging_phpmailer.module
Implementation of hook_menu().

File

messaging_phpmailer/messaging_phpmailer.module, line 52
HTML Mail using PHPMailer. Messaging method plug-in.

Code

function messaging_phpmailer_settings_form($form_state) {
  $form['messaging_phpmailer_smtp_server'] = array(
    '#title' => t('SMTP server'),
    '#type' => 'textfield',
    '#default_value' => variable_get('messaging_phpmailer_smtp_server', ini_get('SMTP')),
  );
  $form['messaging_phpmailer_debug'] = array(
    '#title' => t('Debug mode'),
    '#type' => 'radios',
    '#options' => array(
      t('Disabled'),
      t('Enabled'),
    ),
    '#default_value' => variable_get('messaging_phpmailer_debug', 0),
    '#description' => t('If enabled, PHPMailer debugging will be activated and all messages logged to watchdog.'),
  );
  return system_settings_form($form);
}