You are here

function htmlmail_admin_settings in HTML Mail 5

Same name and namespace in other branches
  1. 8.2 htmlmail.admin.inc \htmlmail_admin_settings()
  2. 6.2 htmlmail.admin.inc \htmlmail_admin_settings()
  3. 6 htmlmail.admin.inc \htmlmail_admin_settings()
  4. 7.2 htmlmail.admin.inc \htmlmail_admin_settings()
  5. 7 htmlmail.admin.inc \htmlmail_admin_settings()
1 string reference to 'htmlmail_admin_settings'
htmlmail_menu in ./htmlmail.module
Implementation of hook_menu().

File

./htmlmail.module, line 111
Send system emails in HTML

Code

function htmlmail_admin_settings() {
  $form['htmlmail_autop'] = array(
    '#type' => 'checkbox',
    '#title' => t('Line break converter'),
    '#default_value' => variable_get('htmlmail_autop', '1'),
    '#description' => t('Converts line breaks into HTML (i.e. <br> and <p> tags).'),
  );
  $form['htmlmail_urlfilter'] = array(
    '#type' => 'checkbox',
    '#title' => t('URL Filter'),
    '#default_value' => variable_get('htmlmail_urlfilter', '1'),
    '#description' => t('Turns web and e-mail addresses into clickable links. URLs longer than 72 characters will be truncated.'),
  );
  $form['htmlmail_emogrifier'] = array(
    '#type' => 'checkbox',
    '#title' => t('Emogrifier'),
    '#default_value' => variable_get('htmlmail_emogrifier', '0'),
    '#description' => t('Insert your CSS definitions as inline styles into HTML tags for Outlook 2007 and Google Gmail.'),
    '#disabled' => !extension_loaded('dom'),
  );
  return system_settings_form($form);
}