public function FeedsLdapEntryParser::configForm in Lightweight Directory Access Protocol (LDAP) 7
Same name and namespace in other branches
- 8.2 ldap_feeds/FeedsLdapEntryParser.inc \FeedsLdapEntryParser::configForm()
- 7.2 ldap_feeds/FeedsLdapEntryParser.inc \FeedsLdapEntryParser::configForm()
Override parent::configForm().
File
- ldap_feeds/
FeedsLdapEntryParser.inc, line 113 - Provides the Parser for an ldap entry array.
Class
- FeedsLdapEntryParser
- @file
Code
public function configForm(&$form_state) {
$form = array();
/** removed until design decisions on multivalued attributes are made
$form['multivalued'] = array(
'#type' => 'radios',
'#title' => t('How should ldap attribute with mulitple values be parsed?'),
'#options' => array(
LDAP_FEEDS_QUERY_FETCHER_MULTI_COMMA => 'Flatten and separate with commas. The source name will be the attribute name such as "memberof"',
LDAP_FEEDS_QUERY_FETCHER_MULTI_SHOW_FIRST => 'Only use first value. The source name will be the attribute name such as "memberof"',
LDAP_FEEDS_QUERY_FETCHER_MULTI_IGNORE => 'Ignore these. The data is problematic anyway. Data will be discarded by parser.',
LDAP_FEEDS_QUERY_FETCHER_MULTI_ARRAY => 'Give each value its own key, such as memberof[0] and memberof[1]. The source name will be memberof[0], memberof[1], etc.',
),
'#default_value' => $this->config['multivalued'],
'#description' => 'For example, in the Active Directory the memberof attribute will have many items, each representing a group.
Generally this data is hard to map to anything other than a flattenned version such as a comma separated list.
'#default_value' => LDAP_FEEDS_QUERY_FETCHER_DEFAULT,
);
*/
return $form;
}