You are here

public function FeedsClientsParser::configForm in Web Service Clients 7

Same name and namespace in other branches
  1. 6 clients/clients_feeds/FeedsClientsParser.inc \FeedsClientsParser::configForm()

Build configuration form.

File

clients/clients_feeds/FeedsClientsParser.inc, line 24
Parser for clients. Contains source selector @todo work out how to make source selector work in fetcher

Class

FeedsClientsParser
Class definition for Common Syndication Parser.

Code

public function configForm(&$form_state) {
  $form = array();
  $services = array();
  foreach (clients_resources_load() as $rid => $source) {
    $services[$rid] = $source['name'];
  }
  $form['source'] = array(
    '#type' => 'select',
    '#title' => t('Available resources'),
    '#default_value' => $this->config['source'],
    '#options' => $services,
    '#description' => t('Choose a resource'),
  );
  return $form;
}