1 |
85ad3d82
|
Assos Assos
|
<?php
|
2 |
|
|
/**
|
3 |
|
|
* @file
|
4 |
|
|
* feeds_news.features.inc
|
5 |
|
|
*/
|
6 |
|
|
|
7 |
|
|
/**
|
8 |
41cc1b08
|
Assos Assos
|
* Implements hook_ctools_plugin_api().
|
9 |
85ad3d82
|
Assos Assos
|
*/
|
10 |
41cc1b08
|
Assos Assos
|
function feeds_news_ctools_plugin_api($module = NULL, $api = NULL) {
|
11 |
85ad3d82
|
Assos Assos
|
if ($module == "feeds" && $api == "feeds_importer_default") {
|
12 |
41cc1b08
|
Assos Assos
|
return array("version" => "1");
|
13 |
85ad3d82
|
Assos Assos
|
}
|
14 |
|
|
}
|
15 |
|
|
|
16 |
|
|
/**
|
17 |
41cc1b08
|
Assos Assos
|
* Implements hook_views_api().
|
18 |
85ad3d82
|
Assos Assos
|
*/
|
19 |
41cc1b08
|
Assos Assos
|
function feeds_news_views_api($module = NULL, $api = NULL) {
|
20 |
|
|
return array("api" => "3.0");
|
21 |
85ad3d82
|
Assos Assos
|
}
|
22 |
|
|
|
23 |
|
|
/**
|
24 |
41cc1b08
|
Assos Assos
|
* Implements hook_node_info().
|
25 |
85ad3d82
|
Assos Assos
|
*/
|
26 |
|
|
function feeds_news_node_info() {
|
27 |
|
|
$items = array(
|
28 |
|
|
'feed' => array(
|
29 |
|
|
'name' => t('Feed'),
|
30 |
|
|
'base' => 'node_content',
|
31 |
|
|
'description' => t('Subscribe to RSS or Atom feeds. Creates nodes of the content type "Feed item" from feed content.'),
|
32 |
|
|
'has_title' => '1',
|
33 |
|
|
'title_label' => t('Title'),
|
34 |
|
|
'help' => '',
|
35 |
|
|
),
|
36 |
|
|
'feed_item' => array(
|
37 |
|
|
'name' => t('Feed item'),
|
38 |
|
|
'base' => 'node_content',
|
39 |
|
|
'description' => t('This content type is being used for automatically aggregated content from feeds.'),
|
40 |
|
|
'has_title' => '1',
|
41 |
|
|
'title_label' => t('Title'),
|
42 |
|
|
'help' => '',
|
43 |
|
|
),
|
44 |
|
|
);
|
45 |
|
|
return $items;
|
46 |
|
|
} |