You are here

function feeds_tamper_convert_case_form in Feeds Tamper 7

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

File

plugins/convert_case.inc, line 16

Code

function feeds_tamper_convert_case_form($importer, $element_key, $settings) {
  $form = array();
  $form['mode'] = array(
    '#type' => 'radios',
    '#title' => t('How to convert case'),
    '#default_value' => isset($settings['mode']) ? $settings['mode'] : MB_CASE_TITLE,
    '#options' => array(
      MB_CASE_TITLE => t('Title Case'),
      MB_CASE_LOWER => t('lower case'),
      MB_CASE_UPPER => t('UPPER CASE'),
      'ucfirst' => t('Sentence case'),
    ),
  );
  return $form;
}