feeds_news.features.inc 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. /**
  3. * @file
  4. * feeds_news.features.inc
  5. */
  6. /**
  7. * Implementation of hook_ctools_plugin_api().
  8. */
  9. function feeds_news_ctools_plugin_api() {
  10. list($module, $api) = func_get_args();
  11. if ($module == "feeds" && $api == "feeds_importer_default") {
  12. return array("version" => 1);
  13. }
  14. }
  15. /**
  16. * Implementation of hook_views_api().
  17. */
  18. function feeds_news_views_api() {
  19. list($module, $api) = func_get_args();
  20. if ($module == "views" && $api == "views_default") {
  21. return array("version" => 3.0);
  22. }
  23. }
  24. /**
  25. * Implementation of 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. return $items;
  47. }