You are here

function ldap_feeds_feeds_plugins in Lightweight Directory Access Protocol (LDAP) 7

Same name and namespace in other branches
  1. 8.2 ldap_feeds/ldap_feeds.module \ldap_feeds_feeds_plugins()
  2. 7.2 ldap_feeds/ldap_feeds.module \ldap_feeds_feeds_plugins()

Implements hook_feeds_plugins().

File

ldap_feeds/ldap_feeds.module, line 7

Code

function ldap_feeds_feeds_plugins() {
  $path = drupal_get_path('module', 'ldap_feeds');
  $info = array();
  $info['FeedsLdapQueryFetcher'] = array(
    'name' => 'LDAP Query Fetcher',
    'description' => 'Fetch content from ldap query',
    'handler' => array(
      'parent' => 'FeedsFetcher',
      // This is the key name, not the class name.
      'class' => 'FeedsLdapQueryFetcher',
      'file' => 'FeedsLdapQueryFetcher.inc',
      'path' => $path,
    ),
  );
  $info['FeedsDrupalUserLdapEntryFetcher'] = array(
    '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>.',
    'handler' => array(
      'parent' => 'FeedsFetcher',
      // This is the key name, not the class name.
      'class' => 'FeedsDrupalUserLdapEntryFetcher',
      'file' => 'FeedsDrupalUserLdapEntryFetcher.inc',
      'path' => $path,
    ),
  );
  $info['FeedsLdapEntryParser'] = array(
    'name' => t('LDAP Entry Parser for Feeds'),
    'description' => t('Parse an LDAP Entry Array'),
    'handler' => array(
      'parent' => 'FeedsParser',
      'class' => 'FeedsLdapEntryParser',
      'file' => 'FeedsLdapEntryParser.inc',
      'path' => $path,
    ),
  );
  return $info;
}