Projet

Général

Profil

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

root / drupal7 / sites / all / modules / feeds / feeds_news / feeds_news.features.inc @ 41cc1b08

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

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

    
16
/**
17
 * Implements hook_views_api().
18
 */
19
function feeds_news_views_api($module = NULL, $api = NULL) {
20
  return array("api" => "3.0");
21
}
22

    
23
/**
24
 * Implements hook_node_info().
25
 */
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
}