Newer
Older
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
<?php
/**
* @file
* Feeds hooks implementations.
*/
/**
* Implements hook_feeds_config_defaults().
*
* @see feeds_tests_form_feedsimporter_feeds_form_alter()
*/
function feeds_tests_feeds_config_defaults(FeedsConfigurable $configurable) {
if (!variable_get('feeds_tests_hook_config_defaults', FALSE)) {
return;
}
if ($configurable instanceof FeedsImporter) {
return array(
'feeds_tests_extra_setting' => FALSE,
);
}
}
/**
* Implements hook_feeds_PLUGIN_TYPE_config_defaults() for plugin 'fetcher'.
*
* @see feeds_tests_form_feedshttpfetcher_feeds_form_alter()
*/
function feeds_tests_feeds_fetcher_config_defaults(FeedsPlugin $plugin) {
if (!variable_get('feeds_tests_hook_config_defaults', FALSE)) {
return;
}
return array(
'feeds_tests_fetcher_extra_setting' => FALSE,
);
}
/**
* Implements hook_feeds_PLUGIN_TYPE_config_defaults() for plugin 'parser'.
*
* @see feeds_tests_form_feedscsvparser_feeds_form_alter()
*/
function feeds_tests_feeds_parser_config_defaults(FeedsPlugin $plugin) {
if (!variable_get('feeds_tests_hook_config_defaults', FALSE)) {
return;
}
return array(
'feeds_tests_parser_extra_setting' => TRUE,
);
}
/**
* Implements hook_feeds_PLUGIN_TYPE_config_defaults() for plugin 'processor'.
*
* @see feeds_tests_form_feedsnodeprocessor_feeds_form_alter()
*/
function feeds_tests_feeds_processor_config_defaults(FeedsPlugin $plugin) {
if (!variable_get('feeds_tests_hook_config_defaults', FALSE)) {
return;
}
return array(
'feeds_tests_processor_extra_setting' => '',
);
}