Projet

Général

Profil

Paste
Télécharger (1,19 ko) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / feeds / feeds_news / feeds_news.features.inc @ 74f6bef0

1
<?php
2
/**
3
 * @file
4
 * feeds_news.features.inc
5
 */
6

    
7
/**
8
 * Implementation of hook_ctools_plugin_api().
9
 */
10
function feeds_news_ctools_plugin_api() {
11
  list($module, $api) = func_get_args();
12
  if ($module == "feeds" && $api == "feeds_importer_default") {
13
    return array("version" => 1);
14
  }
15
}
16

    
17
/**
18
 * Implementation of hook_views_api().
19
 */
20
function feeds_news_views_api() {
21
  list($module, $api) = func_get_args();
22
  if ($module == "views" && $api == "views_default") {
23
    return array("version" => 3.0);
24
  }
25
}
26

    
27
/**
28
 * Implementation of hook_node_info().
29
 */
30
function feeds_news_node_info() {
31
  $items = array(
32
    'feed' => array(
33
      'name' => t('Feed'),
34
      'base' => 'node_content',
35
      'description' => t('Subscribe to RSS or Atom feeds. Creates nodes of the content type "Feed item" from feed content.'),
36
      'has_title' => '1',
37
      'title_label' => t('Title'),
38
      'help' => '',
39
    ),
40
    'feed_item' => array(
41
      'name' => t('Feed item'),
42
      'base' => 'node_content',
43
      'description' => t('This content type is being used for automatically aggregated content from feeds.'),
44
      'has_title' => '1',
45
      'title_label' => t('Title'),
46
      'help' => '',
47
    ),
48
  );
49
  return $items;
50
}