You are here

public function FeedsForenaBlockFetcher::sourceForm in Forena Reports 7.5

Same name and namespace in other branches
  1. 7.3 feeds/FeedsForenaBlockFetcher.inc \FeedsForenaBlockFetcher::sourceForm()
  2. 7.4 feeds/FeedsForenaBlockFetcher.inc \FeedsForenaBlockFetcher::sourceForm()

File

feeds/FeedsForenaBlockFetcher.inc, line 49

Class

FeedsForenaBlockFetcher

Code

public function sourceForm($source_config) {
  $form = array();
  $form['source'] = array(
    '#type' => 'textfield',
    '#autocomplete_path' => 'forena/data_block/autocomplete',
    '#title' => 'Data Block',
    '#required' => TRUE,
    '#description' => t('Select an exising block.'),
    '#default_value' => isset($source_config['source']) ? $source_config['source'] : '',
  );
  $form['data'] = array(
    '#type' => 'textarea',
    '#title' => t('Parameters  '),
    '#description' => t('Specify one per line the key value pairs that will be used when fetching the data.   The format
          used is the same as in .info files.'),
    '#default_value' => isset($source_config['data']) ? $source_config['data'] : '',
    '#rows' => 20,
    '#maxlength' => NULL,
    '#required' => FALSE,
  );
  return $form;
}