function htmlmail_admin_settings in HTML Mail 6
Same name and namespace in other branches
- 8.2 htmlmail.admin.inc \htmlmail_admin_settings()
- 5 htmlmail.module \htmlmail_admin_settings()
- 6.2 htmlmail.admin.inc \htmlmail_admin_settings()
- 7.2 htmlmail.admin.inc \htmlmail_admin_settings()
- 7 htmlmail.admin.inc \htmlmail_admin_settings()
@file Admin forms for HTML Mail
1 string reference to 'htmlmail_admin_settings'
- htmlmail_menu in ./
htmlmail.module - Implementation of hook_menu().
File
- ./
htmlmail.admin.inc, line 8 - Admin forms for HTML Mail
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.<br /><em>Checkbox will be disabled if DOM extension is not loaded.</em>'),
'#disabled' => !extension_loaded('dom'),
);
$form['htmlmail_token'] = array(
'#type' => 'checkbox',
'#title' => t('Token support'),
'#default_value' => variable_get('htmlmail_token', '0'),
'#description' => t('Make use of the <strong><a href="http://drupal.org/project/token">Token</a></strong> module in order to tune up your mail header and footer.<br /><em>You need to have the module installed.</em>'),
'#disabled' => !module_exists('token'),
);
$form['htmlmail_rel_to_abs'] = array(
'#type' => 'checkbox',
'#title' => t('Convert relative links to absolute'),
'#default_value' => variable_get('htmlmail_rel_to_abs', '0'),
'#description' => t('Make use of the <strong><a href="http://drupal.org/project/rel_to_abs">Relative Path to Absolute URLs</a></strong> module to fix broken image links when using a WYSIWYG, untick if you want control over this.<br /><em>You need to have the module installed.</em>'),
'#disabled' => !module_exists('rel_to_abs'),
);
$form['htmlmail_debug'] = array(
'#type' => 'checkbox',
'#title' => t('Debug'),
'#default_value' => variable_get('htmlmail_debug', '0'),
'#description' => t('Add mail key to bottom of email. Useful for theme template suggestion or exclusion settings.'),
);
$form['htmlmail_plain'] = array(
'#type' => 'fieldset',
'#title' => t('Plain Text Settings'),
'#collapsible' => TRUE,
);
$form['htmlmail_plain']['htmlmail_plain_type'] = array(
'#type' => 'radios',
'#title' => t('Process with HTML Mail'),
'#options' => array(
t('Exclude e-mail sent from the listed modules.'),
t('Incude e-mail send from the listed modules.'),
),
'#default_value' => variable_get('htmlmail_plain_type', 0),
);
$form['htmlmail_plain']['htmlmail_plain_settings'] = array(
'#type' => 'textarea',
'#title' => t('Modules or mail keys'),
'#default_value' => variable_get('htmlmail_plain_settings', ''),
'#description' => t('Enter module name. eg: "user" (without quotes) for all user module emails. <em>Note there is a bug in Drupal 6 core which may make this unreliable.</em>'),
);
return system_settings_form($form);
}