-
Notifications
You must be signed in to change notification settings - Fork 0
/
kolding_modules.features.inc
153 lines (149 loc) · 4.1 KB
/
kolding_modules.features.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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<?php
/**
* Implementation of hook_ctools_plugin_api().
*/
function kolding_modules_ctools_plugin_api() {
list($module, $api) = func_get_args();
if ($module == "page_manager" && $api == "pages_default") {
return array("version" => 1);
}
elseif ($module == "strongarm" && $api == "strongarm") {
return array("version" => 1);
}
}
/**
* Implementation of hook_imagecache_default_presets().
*/
function kolding_modules_imagecache_default_presets() {
$items = array(
'fullcontent' => array(
'presetname' => 'fullcontent',
'actions' => array(
'0' => array(
'weight' => '0',
'module' => 'imagecache',
'action' => 'imagecache_scale',
'data' => array(
'width' => '675',
'height' => '100%',
'upscale' => 0,
),
),
),
),
'kolding_top_image' => array(
'presetname' => 'kolding_top_image',
'actions' => array(
'0' => array(
'weight' => '0',
'module' => 'imagecache',
'action' => 'imagecache_scale',
'data' => array(
'width' => '460px',
'height' => '100%',
'upscale' => 0,
),
),
),
),
);
return $items;
}
/**
* Implementation of hook_rules_defaults().
*/
function kolding_modules_rules_defaults() {
return array(
'rules' => array(
'rules_kolding_article_saved' => array(
'#type' => 'rule',
'#set' => 'event_node_insert',
'#label' => 'kolding_article_saved',
'#active' => 1,
'#weight' => '0',
'#categories' => array(
'0' => 'kolding',
'kolding_modules' => 'kolding_modules',
),
'#status' => 'default',
'#conditions' => array(
'0' => array(
'#weight' => 0,
'#type' => 'condition',
'#settings' => array(
'type' => array(
'article' => 'article',
),
'#argument map' => array(
'node' => 'node',
),
),
'#name' => 'rules_condition_content_is_type',
'#info' => array(
'label' => 'Created content is article',
'label callback' => FALSE,
'arguments' => array(
'node' => array(
'type' => 'node',
'label' => 'Content',
),
),
'module' => 'Node',
),
),
),
'#actions' => array(
'1' => array(
'#weight' => 0,
'#info' => array(
'label' => 'Clear the cache of a user_blog_list view.',
'label callback' => FALSE,
'arguments' => array(
'view' => array(
'type' => 'string',
'label' => 'View',
'description' => 'Specify the view you want to clear.',
),
),
'module' => 'Cache Actions',
),
'#name' => 'cache_actions_action_clear_views_cache',
'#settings' => array(
'view' => 'user_blog_list',
),
'#type' => 'action',
),
'0' => array(
'#info' => array(
'label' => 'Clear the cache of a article_list view.',
'label callback' => FALSE,
'arguments' => array(
'view' => array(
'type' => 'string',
'label' => 'View',
'description' => 'Specify the view you want to clear.',
),
),
'module' => 'Cache Actions',
),
'#name' => 'cache_actions_action_clear_views_cache',
'#settings' => array(
'view' => 'kolding_article_list',
),
'#type' => 'action',
'#weight' => 1,
),
),
'#version' => 6003,
),
),
);
}
/**
* Implementation of hook_views_api().
*/
function kolding_modules_views_api() {
return array(
'api' => '2',
);
}