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.8 KB
|
Línea | |
---|
1 | <?php |
---|
2 | |
---|
3 | /** |
---|
4 | * Implementation of hook_feeds_importer_default(). |
---|
5 | */ |
---|
6 | function feeds_fast_news_feeds_importer_default() { |
---|
7 | $export = array(); |
---|
8 | $feeds_importer = new stdClass; |
---|
9 | $feeds_importer->disabled = FALSE; /* Edit this to true to make a default feeds_importer disabled initially */ |
---|
10 | $feeds_importer->api_version = 1; |
---|
11 | $feeds_importer->id = 'feed_fast'; |
---|
12 | $feeds_importer->config = array( |
---|
13 | 'name' => 'Fast feed', |
---|
14 | 'description' => 'Create light weight database records from feed items. Faster than aggregating nodes.', |
---|
15 | 'fetcher' => array( |
---|
16 | 'plugin_key' => 'FeedsHTTPFetcher', |
---|
17 | 'config' => array( |
---|
18 | 'auto_detect_feeds' => FALSE, |
---|
19 | 'use_pubsubhubbub' => FALSE, |
---|
20 | 'designated_hub' => '', |
---|
21 | ), |
---|
22 | ), |
---|
23 | 'parser' => array( |
---|
24 | 'plugin_key' => 'FeedsSyndicationParser', |
---|
25 | 'config' => array(), |
---|
26 | ), |
---|
27 | 'processor' => array( |
---|
28 | 'plugin_key' => 'FeedsDataProcessor', |
---|
29 | 'config' => array( |
---|
30 | 'update_existing' => 0, |
---|
31 | 'expire' => '7257600', |
---|
32 | 'mappings' => array( |
---|
33 | '0' => array( |
---|
34 | 'source' => 'title', |
---|
35 | 'target' => 'title', |
---|
36 | 'unique' => 0, |
---|
37 | ), |
---|
38 | '1' => array( |
---|
39 | 'source' => 'description', |
---|
40 | 'target' => 'description', |
---|
41 | 'unique' => 0, |
---|
42 | ), |
---|
43 | '2' => array( |
---|
44 | 'source' => 'url', |
---|
45 | 'target' => 'url', |
---|
46 | 'unique' => 1, |
---|
47 | ), |
---|
48 | '3' => array( |
---|
49 | 'source' => 'guid', |
---|
50 | 'target' => 'guid', |
---|
51 | 'unique' => 1, |
---|
52 | ), |
---|
53 | ), |
---|
54 | ), |
---|
55 | ), |
---|
56 | 'content_type' => 'feed_fast', |
---|
57 | 'update' => 0, |
---|
58 | 'import_period' => '1800', |
---|
59 | 'expire_period' => 3600, |
---|
60 | 'import_on_create' => 1, |
---|
61 | ); |
---|
62 | |
---|
63 | $export['feed_fast'] = $feeds_importer; |
---|
64 | return $export; |
---|
65 | } |
---|
Nota: Vea
TracBrowser
para ayuda de uso del navegador del repositorio.