function feeds_oauth_feeds_plugins in Feeds OAuth 7
Same name and namespace in other branches
- 6 feeds_oauth.module \feeds_oauth_feeds_plugins()
Implements hook_feed_plugins().
File
- ./
feeds_oauth.module, line 12 - The module file.
Code
function feeds_oauth_feeds_plugins() {
$info = array();
$info['OAuthHTTPFetcher'] = array(
'name' => 'HTTP OAuth fetcher',
'description' => 'Download content with OAuth authentication.',
'help' => 'Uses OAuth to authenticate requests to remote resources.',
'handler' => array(
// This is the key name, not the class name.
'parent' => 'FeedsHTTPFetcher',
'class' => 'OAuthHTTPFetcher',
'file' => 'OAuthHTTPFetcher.inc',
'path' => drupal_get_path('module', 'feeds_oauth'),
),
);
$info['OAuth2HTTPSFetcher'] = array(
'name' => 'HTTPS OAuth 2.0 fetcher',
'description' => 'Download content with OAuth 2.0 authentication.',
'help' => 'Uses OAuth 2.0 to authenticate requests to remote resources.',
'handler' => array(
// This is the key name, not the class name.
'parent' => 'OAuthHTTPFetcher',
'class' => 'OAuth2HTTPSFetcher',
'file' => 'OAuth2HTTPSFetcher.inc',
'path' => drupal_get_path('module', 'feeds_oauth'),
),
);
return $info;
}