function ldap_feeds_feeds_plugins in Lightweight Directory Access Protocol (LDAP) 7.2
Same name and namespace in other branches
- 8.2 ldap_feeds/ldap_feeds.module \ldap_feeds_feeds_plugins()
- 7 ldap_feeds/ldap_feeds.module \ldap_feeds_feeds_plugins()
Implements hook_feeds_plugins().
File
- ldap_feeds/
ldap_feeds.module, line 19
Code
function ldap_feeds_feeds_plugins() {
$path = drupal_get_path('module', 'ldap_feeds');
$info = [];
$info['FeedsLdapQueryFetcher'] = [
'name' => 'LDAP Query Fetcher',
'description' => 'Fetch content from ldap query',
'handler' => [
// This is the key name, not the class name.
'parent' => 'FeedsFetcher',
'class' => 'FeedsLdapQueryFetcher',
'file' => 'FeedsLdapQueryFetcher.inc',
'path' => $path,
],
];
$info['FeedsDrupalUserLdapEntryFetcher'] = [
'name' => 'Drupal User LDAP Entry Fetcher',
'description' => 'Fetches one entry for each LDAP authenticated user. Fetches both LDAP entry attributes such as
<code>cn, dn,</code> etc.
and Drupal user data such as <code>uid, name, mail, created, status, language, </code>and <code>signature</code>.
Make sure to add dn in your LDAP query for this parser, if you use custom attributes.',
'handler' => [
// This is the key name, not the class name.
'parent' => 'FeedsFetcher',
'class' => 'FeedsDrupalUserLdapEntryFetcher',
'file' => 'FeedsDrupalUserLdapEntryFetcher.inc',
'path' => $path,
],
];
$info['FeedsLdapEntryParser'] = [
'name' => t('LDAP Entry Parser for Feeds'),
'description' => t('Parse an LDAP Entry Array'),
'handler' => [
'parent' => 'FeedsParser',
'class' => 'FeedsLdapEntryParser',
'file' => 'FeedsLdapEntryParser.inc',
'path' => $path,
],
];
return $info;
}