feeds_news.features.inc 1.1 KB

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