stableversion-3.0
Last change
on this file since 92213c1 was
177a560,
checked in by José Gregorio Puentes <jpuentes@…>, 8 años ago
|
se agrego el directorio de modulos contribuidos de drupal
|
-
Propiedad mode establecida a
100755
|
File size:
1.2 KB
|
Ver. | Línea | |
---|
[177a560] | 1 | <?php |
---|
| 2 | |
---|
| 3 | /** |
---|
| 4 | * Implementation of hook_ctools_plugin_api(). |
---|
| 5 | */ |
---|
| 6 | function feeds_news_ctools_plugin_api() { |
---|
| 7 | list($module, $api) = func_get_args(); |
---|
| 8 | if ($module == "feeds" && $api == "feeds_importer_default") { |
---|
| 9 | return array("version" => 1); |
---|
| 10 | } |
---|
| 11 | } |
---|
| 12 | |
---|
| 13 | /** |
---|
| 14 | * Implementation of hook_node_info(). |
---|
| 15 | */ |
---|
| 16 | function feeds_news_node_info() { |
---|
| 17 | $items = array( |
---|
| 18 | 'feed' => array( |
---|
| 19 | 'name' => t('Feed'), |
---|
| 20 | 'module' => 'node', |
---|
| 21 | 'description' => t('Subscribe to RSS or Atom feeds. Creates nodes of the content type "Feed item" from feed content.'), |
---|
| 22 | 'has_title' => '1', |
---|
| 23 | 'title_label' => t('Title'), |
---|
| 24 | 'has_body' => '1', |
---|
| 25 | 'body_label' => t('Body'), |
---|
| 26 | 'min_word_count' => '0', |
---|
| 27 | 'help' => '', |
---|
| 28 | ), |
---|
| 29 | 'feed_item' => array( |
---|
| 30 | 'name' => t('Feed item'), |
---|
| 31 | 'module' => 'node', |
---|
| 32 | 'description' => t('This content type is being used for automatically aggregated content from feeds.'), |
---|
| 33 | 'has_title' => '1', |
---|
| 34 | 'title_label' => t('Title'), |
---|
| 35 | 'has_body' => '1', |
---|
| 36 | 'body_label' => t('Body'), |
---|
| 37 | 'min_word_count' => '0', |
---|
| 38 | 'help' => '', |
---|
| 39 | ), |
---|
| 40 | ); |
---|
| 41 | return $items; |
---|
| 42 | } |
---|
| 43 | |
---|
| 44 | /** |
---|
| 45 | * Implementation of hook_views_api(). |
---|
| 46 | */ |
---|
| 47 | function feeds_news_views_api() { |
---|
| 48 | return array( |
---|
| 49 | 'api' => '2', |
---|
| 50 | ); |
---|
| 51 | } |
---|
Nota: Vea
TracBrowser
para ayuda de uso del navegador del repositorio.