function htmlmail_template_settings in HTML Mail 6
Same name and namespace in other branches
- 5 htmlmail.module \htmlmail_template_settings()
- 7 htmlmail.admin.inc \htmlmail_template_settings()
1 string reference to 'htmlmail_template_settings'
- htmlmail_menu in ./
htmlmail.module - Implementation of hook_menu().
File
- ./
htmlmail.admin.inc, line 72 - Admin forms for HTML Mail
Code
function htmlmail_template_settings() {
$form['htmlmail_header'] = array(
'#type' => 'textarea',
'#title' => t('Header HTML'),
'#rows' => 6,
'#default_value' => variable_get('htmlmail_header', ''),
);
if (module_exists('token') && variable_get('htmlmail_token', '0')) {
$form['htmlmail_header_tokens'] = array(
'#type' => 'fieldset',
'#title' => t('Replacement patterns'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
'#description' => theme('htmlmail_token_help'),
);
}
$form['htmlmail_footer'] = array(
'#type' => 'textarea',
'#title' => t('Footer HTML'),
'#rows' => 6,
'#default_value' => variable_get('htmlmail_footer', ''),
);
if (module_exists('token') && variable_get('htmlmail_token', '0')) {
$form['htmlmail_footer_tokens'] = array(
'#type' => 'fieldset',
'#title' => t('Replacement patterns'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
'#description' => theme('htmlmail_token_help'),
);
}
$form['htmlmail_css'] = array(
'#type' => 'textarea',
'#title' => t('CSS'),
'#default_value' => variable_get('htmlmail_css', ''),
);
return system_settings_form($form);
}