You are here

function feeds_tamper_strip_tags_form in Feeds Tamper 7

Same name and namespace in other branches
  1. 6 plugins/strip_tags.inc \feeds_tamper_strip_tags_form()
1 string reference to 'feeds_tamper_strip_tags_form'
strip_tags.inc in plugins/strip_tags.inc

File

plugins/strip_tags.inc, line 17

Code

function feeds_tamper_strip_tags_form($importer, $element_key, $settings) {
  $form = array();
  $form['help']['#markup'] = t('Remove all HTML tags except:');
  $form['allowed_tags'] = array(
    '#type' => 'textfield',
    '#title' => t('Allowed tags'),
    '#default_value' => isset($settings['allowed_tags']) ? $settings['allowed_tags'] : '',
    '#description' => t('A list of allowed tags, such as %a%b.', array(
      '%a' => '<a>',
      '%b' => '<em>',
    )),
  );
  return $form;
}