Merge in changes from http://github.com/lxbarth/Feeds/commits/DRUPAL-7--1-0-alpha1.
[project/feeds.git] / feeds_news / feeds_news.features.inc
CommitLineData
7f33f0c4
AB
1<?php
2
3/**
4 * Implementation of hook_ctools_plugin_api().
5 */
6function feeds_news_ctools_plugin_api() {
7 list($module, $api) = func_get_args();
8 if ($module == "feeds" && $api == "feeds_importer_default") {
9 return array("version" => 1);
10 }
11}
12
13/**
14 * Implementation of hook_node_info().
15 */
16function feeds_news_node_info() {
17 $items = array(
18 'feed' => array(
19 'name' => t('Feed'),
725e6aeb 20 'base' => 'node_content',
7f33f0c4
AB
21 'description' => t('Subscribe to RSS or Atom feeds. Creates nodes of the content type "Feed item" from feed content.'),
22 'has_title' => '1',
23 'title_label' => t('Title'),
7f33f0c4
AB
24 'help' => '',
25 ),
26 'feed_item' => array(
27 'name' => t('Feed item'),
725e6aeb 28 'base' => 'node_content',
7f33f0c4
AB
29 'description' => t('This content type is being used for automatically aggregated content from feeds.'),
30 'has_title' => '1',
31 'title_label' => t('Title'),
7f33f0c4
AB
32 'help' => '',
33 ),
34 );
35 return $items;
36}
37
38/**
39 * Implementation of hook_views_api().
40 */
41function feeds_news_views_api() {
42 return array(
725e6aeb 43 'api' => '3.0-alpha1',
7f33f0c4
AB
44 );
45}