-
Notifications
You must be signed in to change notification settings - Fork 1
/
ding_redia_feed.features.inc
150 lines (147 loc) · 4.12 KB
/
ding_redia_feed.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
<?php
/**
* Implementation of hook_views_api().
*/
function ding_redia_feed_views_api() {
return array(
'api' => '2',
);
}
/**
* Implementation of hook_flag_default_flags().
*/
function ding_redia_feed_flag_default_flags() {
$flags = array();
// Exported flag: "Mobil-app indhold".
$flags['ding_redia_feed_mobileapp'] = array(
'content_type' => 'node',
'title' => 'Mobil-app indhold',
'global' => '1',
'types' => array(
'0' => 'article',
'1' => 'event',
),
'flag_short' => 'Vis i mobil-app',
'flag_long' => '',
'flag_message' => '',
'unflag_short' => 'Fjern Fra mobil-app',
'unflag_long' => '',
'unflag_message' => '',
'unflag_denied_text' => '',
'link_type' => 'toggle',
'roles' => array(
'flag' => array(
'0' => 5,
'1' => 6,
),
'unflag' => array(
'0' => 5,
'1' => 6,
),
),
'show_on_page' => 1,
'show_on_teaser' => 1,
'show_on_form' => 1,
'access_author' => '',
'i18n' => 0,
'api_version' => 2,
'module' => 'ding_redia_feed',
'locked' => array(
'0' => 'name',
),
);
return $flags;
}
/**
* Implementation of hook_rules_defaults().
*/
function ding_redia_feed_rules_defaults() {
return array(
'rules' => array(
'rules_ding_redia_feed_mobileapp_flagged' => array(
'#type' => 'rule',
'#set' => 'event_flag_flagged_ding_redia_feed_mobileapp',
'#label' => 'A node was flagged for display in the mobile app.',
'#active' => 1,
'#weight' => '0',
'#categories' => array(
'0' => 'ding_redia_feed',
'ding_redia_feed' => 'ding_redia_feed',
),
'#status' => 'default',
'#conditions' => array(),
'#actions' => array(
'0' => array(
'#weight' => 0,
'#info' => array(
'label' => 'Clear the cache of a specific view.',
'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' => 'ding_redia_feed_mobileapp',
'#eval input' => array(
'token_rules_input_evaluator' => array(
'view' => array(
'0' => ':global',
),
),
),
),
'#type' => 'action',
),
),
'#version' => 6003,
),
'rules_ding_redia_feed_mobileapp_unflagged' => array(
'#type' => 'rule',
'#set' => 'event_flag_unflagged_ding_redia_feed_mobileapp',
'#label' => 'A node was unflagged from display in the mobile app.',
'#active' => 1,
'#weight' => '0',
'#categories' => array(
'0' => 'ding_redia_feed',
'ding_redia_feed' => 'ding_redia_feed',
),
'#status' => 'default',
'#conditions' => array(),
'#actions' => array(
'0' => array(
'#weight' => 0,
'#type' => 'action',
'#settings' => array(
'view' => 'ding_redia_feed_mobileapp',
'#eval input' => array(
'token_rules_input_evaluator' => array(
'view' => array(
'0' => ':global',
),
),
),
),
'#name' => 'cache_actions_action_clear_views_cache',
'#info' => array(
'label' => 'Clear the cache of a specific view.',
'arguments' => array(
'view' => array(
'type' => 'string',
'label' => 'View',
'description' => 'Specify the view you want to clear.',
),
),
'module' => 'Cache Actions',
),
),
),
'#version' => 6003,
),
),
);
}