Projet

Général

Profil

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

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

1
<?php
2

    
3
/**
4
 * @file
5
 * feeds_news.features.inc
6
 */
7

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

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

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