You are here

public function FeedsForenaXMLParser::configForm in Forena Reports 7.3

Same name and namespace in other branches
  1. 7.5 feeds/FeedsForenaXMLParser.inc \FeedsForenaXMLParser::configForm()
  2. 7.4 feeds/FeedsForenaXMLParser.inc \FeedsForenaXMLParser::configForm()

Build configuration form.

File

feeds/FeedsForenaXMLParser.inc, line 55

Class

FeedsForenaXMLParser

Code

public function configForm(&$form_state) {
  $form = array();
  $form['xpath'] = array(
    '#type' => 'textfield',
    '#title' => t('Default XPath Expression'),
    '#description' => t('Specify an xpath expression that will be used to break up the data into feed items.  When in doubt use * '),
    '#default_value' => $this->config['xpath'],
  );
  $form['options'] = array(
    '#type' => 'textarea',
    '#title' => t('Default Formatting Option  '),
    '#description' => t('Specify the field configuration options to be used when specifying the data.    The format
          used is the same as in .info files with falues for the FRX files. (e.g. fields[date_taken][format] = iso_date )'),
    '#default_value' => $this->config['options'],
    '#rows' => 20,
    '#maxlength' => NULL,
    '#required' => FALSE,
  );
  return $form;
}