public function FeedsClientsParser::configForm in Web Service Clients 6
Same name and namespace in other branches
- 7 clients/clients_feeds/FeedsClientsParser.inc \FeedsClientsParser::configForm()
Build configuration form.
Overrides FeedsConfigurable::configForm
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;
}