You are here

function feeds_tamper_explode_validate in Feeds Tamper 6

Same name and namespace in other branches
  1. 7 plugins/explode.inc \feeds_tamper_explode_validate()
1 string reference to 'feeds_tamper_explode_validate'
explode.inc in plugins/explode.inc

File

plugins/explode.inc, line 36

Code

function feeds_tamper_explode_validate(&$settings) {
  $settings['real_separator'] = str_replace(array(
    '%s',
    '%t',
    '%n',
  ), array(
    ' ',
    "\t",
    "\n",
  ), $settings['separator']);
  $settings['limit'] = trim($settings['limit']);
  if (!empty($settings['limit']) && !is_numeric($settings['limit'])) {
    form_set_error('settings][limit', t('Limit must be an integer or blank.'));
  }
}