',', 'translatable' => TRUE, ); $options['quote'] = array( 'default' => TRUE, 'translatable' => TRUE, ); $options['trim'] = array( 'default' => FALSE, 'translatable' => FALSE, ); $options['replace_newlines'] = array( 'default' => FALSE, 'translatable' => FALSE, ); $options['newline_replacement'] = array( 'default' => ', ', 'translatable' => FALSE, ); $options['newline_token'] = array( 'default' => 1, 'translatable' => FALSE, ); $options['header'] = array( 'default' => TRUE, 'translatable' => FALSE, ); $options['keep_html'] = array( 'default' => FALSE, 'translatable' => FALSE, ); $options['encoding'] = array( 'default' => '', 'translatable' => FALSE, ); return $options; } /** * Options form mini callback. * * @param $form * Form array to add additional fields to. * @param $form_state * State of the form. * @return * None. */ function options_form(&$form, &$form_state) { parent::options_form($form, $form_state); $form['separator'] = array( '#type' => 'textfield', '#title' => t('Separator'), '#default_value' => !empty($this->options['separator']) ? $this->options['separator'] : ',', '#description' => t('This is the separator that is used to separate fields. CSV implies comma separated fields so this should not be changed unless you have specific requirements'), ); $form['quote'] = array( '#type' => 'checkbox', '#default_value' => !empty($this->options['quote']), '#title' => t('Quote values. Useful for output that might contain your separator as part of one of the values.'), ); $form['trim'] = array( '#type' => 'checkbox', '#default_value' => !empty($this->options['trim']), '#title' => t('Trim whitespace from rendered fields. Can be useful for some themes where output results in extra newlines.'), ); $form['replace_newlines'] = array( '#type' => 'checkbox', '#default_value' => !empty($this->options['replace_newlines']), '#title' => t('Replace newlines in rendered fields.'), ); $form['newline_replacement'] = array( '#prefix' => '