You are here

function _mailhandler_filter_settings in Mailhandler 6.2

Same name and namespace in other branches
  1. 7.2 mailhandler.module \_mailhandler_filter_settings()
1 call to _mailhandler_filter_settings()
mailhandler_filter in ./mailhandler.module
Implementation of hook_filter().

File

./mailhandler.module, line 260
Retrieves email for posting as nodes and comments.

Code

function _mailhandler_filter_settings($format) {
  $form['mailhandler_filter'] = array(
    '#type' => 'fieldset',
    '#title' => t('Strip signature'),
    '#collapsible' => TRUE,
  );
  $form['mailhandler_filter']["sig_separator_{$format}"] = array(
    '#type' => 'textfield',
    '#title' => t('Signature separator'),
    '#default_value' => variable_get("mailhandler_filter_{$format}", '-- '),
    '#description' => t('After the first line matching this string, any further text will be hidden. A typical value is <strong>"-- "</strong> that is two dashes followed by a blank in an otherwise empty line. Leave blank to include signature text in nodes.'),
  );
  return $form;
}