-
Notifications
You must be signed in to change notification settings - Fork 0
/
ws_bb.feeds_importer_default.inc
101 lines (98 loc) · 2.73 KB
/
ws_bb.feeds_importer_default.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<?php
/**
* @file
* ws_bb.feeds_importer_default.inc
*/
/**
* Implements hook_feeds_importer_default().
*/
function ws_bb_feeds_importer_default() {
$export = array();
$feeds_importer = new stdClass();
$feeds_importer->disabled = FALSE; /* Edit this to true to make a default feeds_importer disabled initially */
$feeds_importer->api_version = 1;
$feeds_importer->id = 'xml_site_creator';
$feeds_importer->config = array(
'name' => 'XML Site Creator',
'description' => 'Creates a site structure from an XML Sitemap, created using the Web Services Blueprint Tool',
'fetcher' => array(
'plugin_key' => 'FeedsHTTPFetcher',
'config' => array(
'auto_detect_feeds' => FALSE,
'use_pubsubhubbub' => FALSE,
'designated_hub' => '',
),
),
'parser' => array(
'plugin_key' => 'FeedsXPathParserXML',
'config' => array(
'sources' => array(
'xpathparser:0' => 'title',
'xpathparser:1' => 'path',
'xpathparser:2' => 'menu_name',
'xpathparser:3' => 'content',
),
'rawXML' => array(
'xpathparser:0' => 0,
'xpathparser:1' => 0,
'xpathparser:2' => 0,
'xpathparser:3' => 0,
),
'context' => '//page',
'exp' => array(
'errors' => 0,
'debug' => array(
'context' => 0,
'xpathparser:0' => 0,
'xpathparser:1' => 0,
'xpathparser:2' => 0,
'xpathparser:3' => 0,
),
),
'allow_override' => 1,
),
),
'processor' => array(
'plugin_key' => 'FeedsNodeProcessor',
'config' => array(
'content_type' => 'page',
'expire' => '-1',
'author' => '1',
'authorize' => 1,
'mappings' => array(
0 => array(
'source' => 'xpathparser:0',
'target' => 'title',
'unique' => FALSE,
),
1 => array(
'source' => 'xpathparser:1',
'target' => 'path_alias',
'unique' => FALSE,
),
2 => array(
'source' => 'xpathparser:2',
'target' => 'menu_name',
'unique' => FALSE,
),
3 => array(
'source' => 'xpathparser:3',
'target' => 'body',
'unique' => FALSE,
),
),
'update_existing' => '1',
'input_format' => 'plain_text',
'skip_hash_check' => 0,
),
),
'content_type' => 'site_blueprint',
'update' => 0,
'import_period' => '-1',
'expire_period' => 3600,
'import_on_create' => 1,
'process_in_background' => 0,
);
$export['xml_site_creator'] = $feeds_importer;
return $export;
}