public function FeedsLdapQueryFetcher::configForm in Lightweight Directory Access Protocol (LDAP) 8.2
Same name and namespace in other branches
- 7.2 ldap_feeds/FeedsLdapQueryFetcher.inc \FeedsLdapQueryFetcher::configForm()
- 7 ldap_feeds/FeedsLdapQueryFetcher.inc \FeedsLdapQueryFetcher::configForm()
Override parent::configForm().
1 call to FeedsLdapQueryFetcher::configForm()
- FeedsLdapQueryFetcher::sourceForm in ldap_feeds/
FeedsLdapQueryFetcher.inc - Override parent::sourceForm().
File
- ldap_feeds/
FeedsLdapQueryFetcher.inc, line 70 - FeedsLdapQueryFetcher
Class
- FeedsLdapQueryFetcher
- Fetches data via LDAP Query.
Code
public function configForm(&$form_state) {
$queries = ldap_query_get_queries(NULL, 'enabled');
$query_options = array(
0 => '--- select one or more queries ---',
);
foreach ($queries as $qid => $query) {
$query_options[$qid] = $query->name;
}
$form = array();
$form['query_ids'] = array(
'#type' => 'select',
'#title' => t('LDAP Query'),
'#multiple' => TRUE,
'#size' => min(10, count($query_options)),
'#required' => TRUE,
'#default_value' => $this->config['query_ids'],
'#description' => t('If more than one query is selected, results from all the queries will be returned.') . ' ' . t('Queries can be added and edited at !link', array(
'!link' => l(t('LDAP Query Admin'), LDAP_QUERY_INDEX_BASE_PATH),
)),
'#options' => $query_options,
);
return $form;
}