1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
// $Id:$ |
4
|
|
|
|
5
|
|
|
/** |
6
|
|
|
* Description: |
7
|
|
|
* |
8
|
|
|
* Define the flags for the flag_abuse_module. There are multiple |
9
|
|
|
* flags for each content type: node, comment, and user. Each has a |
10
|
|
|
* 'meta' flag which helps organize the 'subflags' for each type. Each |
11
|
|
|
* subflag is labeled 1, 2, 3, etc. There are five for node and |
12
|
|
|
* comment; four for user. More may be added here if necessary. |
13
|
|
|
* |
14
|
|
|
* In the admin flag interface, after adding the meta flags and flags |
15
|
|
|
* 1, 2, 3, etc. The admin may give the 1, 2, 3, flags titles to make |
16
|
|
|
* them clear what each flag does. The machine readable name will |
17
|
|
|
* still be use number 1, 2, 3, but the title, description, links, |
18
|
|
|
* etc should all be changed to be human readable as well as |
19
|
|
|
* specific. Example: abuse_node_1 should be used for SPAM nodes. |
20
|
|
|
*/ |
21
|
|
|
|
22
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
23
|
|
|
* Node Flags |
24
|
|
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * */ |
25
|
|
|
function _flag_abuse_reason_abuse_node_flags(&$flags) { |
26
|
|
|
// Exported flag: "Node Abuse metalink". |
27
|
|
|
$flags[] = array ( |
|
|
|
|
28
|
|
|
'content_type' => 'node', |
29
|
|
|
'name' => 'abuse_node_meta', |
30
|
|
|
'title' => 'Node Abuse meta', |
31
|
|
|
'global' => false, |
32
|
|
|
'types' => array ( |
|
|
|
|
33
|
|
|
'0' => 'forum', |
34
|
|
|
'1' => 'news', |
35
|
|
|
'2' => 'team_forum', |
36
|
|
|
), |
37
|
|
|
'events' => array ( |
|
|
|
|
38
|
|
|
0 => 'flag', |
39
|
|
|
1 => 'unflag', |
40
|
|
|
2 => 'reset', |
41
|
|
|
), |
42
|
|
|
'flag_short' => 'Meta Flag for node', |
43
|
|
|
'flag_long' => 'Meta Flag for node.', |
44
|
|
|
'flag_message' => '', |
45
|
|
|
'unflag_short' => 'Meta Flag for node', |
46
|
|
|
'unflag_long' => 'Meta Flag for node.', |
47
|
|
|
'unflag_message' => '', |
48
|
|
|
'unflag_denied_text' => '', |
49
|
|
|
'link_type' => 'confirm', |
50
|
|
|
'roles' => array ( |
|
|
|
|
51
|
|
|
'flag' => array ( |
|
|
|
|
52
|
|
|
0 => '2', |
53
|
|
|
), |
54
|
|
|
'unflag' => array ( |
|
|
|
|
55
|
|
|
0 => '2', |
56
|
|
|
), |
57
|
|
|
), |
58
|
|
|
'show_on_page' => true, |
59
|
|
|
'show_on_teaser' => false, |
60
|
|
|
'show_on_form' => false, |
61
|
|
|
'access_author' => '', |
62
|
|
|
'i18n' => 0, |
63
|
|
|
'flag_confirmation' => 'Are you sure you want to flag this content?', |
64
|
|
|
'unflag_confirmation' => 'Are you sure you want to unflag this content?', |
65
|
|
|
'reset_short' => 'Reset flags', |
66
|
|
|
'reset_long' => 'Reset all flags on this content', |
67
|
|
|
'reset_confirmation' => 'Are you sure you want to reset all flags on this content?', |
68
|
|
|
'status' => false, |
69
|
|
|
'locked' => array ( |
|
|
|
|
70
|
|
|
'name' => 'name', |
71
|
|
|
'global' => 'global', |
72
|
|
|
), |
73
|
|
|
'module' => 'flag_abuse_reason', |
74
|
|
|
'api_version' => 2, |
75
|
|
|
); |
76
|
|
|
|
77
|
|
|
// Exported flag: "Node Abuse 1". |
78
|
|
|
$flags[] = array ( |
|
|
|
|
79
|
|
|
'content_type' => 'node', |
80
|
|
|
'name' => 'abuse_node_1', |
81
|
|
|
'title' => 'Node Abuse 1', |
82
|
|
|
'global' => false, |
83
|
|
|
'types' => array ( |
|
|
|
|
84
|
|
|
'0' => 'forum', |
85
|
|
|
'1' => 'news', |
86
|
|
|
'2' => 'team_forum', |
87
|
|
|
), |
88
|
|
|
'events' => array ( |
|
|
|
|
89
|
|
|
0 => 'flag', |
90
|
|
|
1 => 'unflag', |
91
|
|
|
2 => 'reset', |
92
|
|
|
), |
93
|
|
|
'flag_short' => 'Flag as offensive', |
94
|
|
|
'flag_long' => 'Flag this content as offensive.', |
95
|
|
|
'flag_message' => '', |
96
|
|
|
'unflag_short' => 'Flag as non-offensive', |
97
|
|
|
'unflag_long' => 'Flag this content as non-offensive.', |
98
|
|
|
'unflag_message' => '', |
99
|
|
|
'unflag_denied_text' => '', |
100
|
|
|
'link_type' => 'confirm', |
101
|
|
|
'roles' => array ( |
|
|
|
|
102
|
|
|
'flag' => array ( |
|
|
|
|
103
|
|
|
0 => '2', |
104
|
|
|
), |
105
|
|
|
'unflag' => array ( |
|
|
|
|
106
|
|
|
0 => '2', |
107
|
|
|
), |
108
|
|
|
), |
109
|
|
|
'show_on_page' => true, |
110
|
|
|
'show_on_teaser' => false, |
111
|
|
|
'show_on_form' => false, |
112
|
|
|
'access_author' => '', |
113
|
|
|
'i18n' => 0, |
114
|
|
|
'flag_confirmation' => 'Are you sure you want to flag this content as offensive?', |
115
|
|
|
'unflag_confirmation' => 'Are you sure you want to flag this content as non-offensive?', |
116
|
|
|
'reset_short' => 'Reset flags', |
117
|
|
|
'reset_long' => 'Reset all flags on this content', |
118
|
|
|
'reset_confirmation' => 'Are you sure you want to reset all flags on this content?', |
119
|
|
|
'status' => false, |
120
|
|
|
'locked' => array ( |
|
|
|
|
121
|
|
|
'name' => 'name', |
122
|
|
|
'global' => 'global', |
123
|
|
|
), |
124
|
|
|
'module' => 'flag_abuse_reason', |
125
|
|
|
'api_version' => 2, |
126
|
|
|
); |
127
|
|
|
|
128
|
|
|
// Exported flag: "Node Abuse 2". |
129
|
|
|
$flags[] = array ( |
|
|
|
|
130
|
|
|
'content_type' => 'node', |
131
|
|
|
'name' => 'abuse_node_2', |
132
|
|
|
'title' => 'Node Abuse 2', |
133
|
|
|
'global' => false, |
134
|
|
|
'types' => array ( |
|
|
|
|
135
|
|
|
'0' => 'forum', |
136
|
|
|
'1' => 'news', |
137
|
|
|
'2' => 'team_forum', |
138
|
|
|
), |
139
|
|
|
'events' => array ( |
|
|
|
|
140
|
|
|
0 => 'flag', |
141
|
|
|
1 => 'unflag', |
142
|
|
|
2 => 'reset', |
143
|
|
|
), |
144
|
|
|
'flag_short' => 'Flag as offensive', |
145
|
|
|
'flag_long' => 'Flag this content as offensive.', |
146
|
|
|
'flag_message' => '', |
147
|
|
|
'unflag_short' => 'Flag as non-offensive', |
148
|
|
|
'unflag_long' => 'Flag this content as non-offensive.', |
149
|
|
|
'unflag_message' => '', |
150
|
|
|
'unflag_denied_text' => '', |
151
|
|
|
'link_type' => 'confirm', |
152
|
|
|
'roles' => array ( |
|
|
|
|
153
|
|
|
'flag' => array ( |
|
|
|
|
154
|
|
|
0 => '2', |
155
|
|
|
), |
156
|
|
|
'unflag' => array ( |
|
|
|
|
157
|
|
|
0 => '2', |
158
|
|
|
), |
159
|
|
|
), |
160
|
|
|
'show_on_page' => true, |
161
|
|
|
'show_on_teaser' => false, |
162
|
|
|
'show_on_form' => false, |
163
|
|
|
'access_author' => '', |
164
|
|
|
'i18n' => 0, |
165
|
|
|
'flag_confirmation' => 'Are you sure you want to flag this content as offensive?', |
166
|
|
|
'unflag_confirmation' => 'Are you sure you want to flag this content as non-offensive?', |
167
|
|
|
'reset_short' => 'Reset flags', |
168
|
|
|
'reset_long' => 'Reset all flags on this content', |
169
|
|
|
'reset_confirmation' => 'Are you sure you want to reset all flags on this content?', |
170
|
|
|
'status' => false, |
171
|
|
|
'locked' => array ( |
|
|
|
|
172
|
|
|
'name' => 'name', |
173
|
|
|
'global' => 'global', |
174
|
|
|
), |
175
|
|
|
'module' => 'flag_abuse_reason', |
176
|
|
|
'api_version' => 2, |
177
|
|
|
); |
178
|
|
|
|
179
|
|
|
// Exported flag: "Node Abuse 3". |
180
|
|
|
$flags[] = array ( |
|
|
|
|
181
|
|
|
'content_type' => 'node', |
182
|
|
|
'name' => 'abuse_node_3', |
183
|
|
|
'title' => 'Node Abuse 3', |
184
|
|
|
'global' => false, |
185
|
|
|
'types' => array ( |
|
|
|
|
186
|
|
|
'0' => 'forum', |
187
|
|
|
'1' => 'news', |
188
|
|
|
'2' => 'team_forum', |
189
|
|
|
), |
190
|
|
|
'events' => array ( |
|
|
|
|
191
|
|
|
0 => 'flag', |
192
|
|
|
1 => 'unflag', |
193
|
|
|
2 => 'reset', |
194
|
|
|
), |
195
|
|
|
'flag_short' => 'Flag as offensive', |
196
|
|
|
'flag_long' => 'Flag this content as offensive.', |
197
|
|
|
'flag_message' => '', |
198
|
|
|
'unflag_short' => 'Flag as non-offensive', |
199
|
|
|
'unflag_long' => 'Flag this content as non-offensive.', |
200
|
|
|
'unflag_message' => '', |
201
|
|
|
'unflag_denied_text' => '', |
202
|
|
|
'link_type' => 'confirm', |
203
|
|
|
'roles' => array ( |
|
|
|
|
204
|
|
|
'flag' => array ( |
|
|
|
|
205
|
|
|
0 => '2', |
206
|
|
|
), |
207
|
|
|
'unflag' => array ( |
|
|
|
|
208
|
|
|
0 => '2', |
209
|
|
|
), |
210
|
|
|
), |
211
|
|
|
'show_on_page' => true, |
212
|
|
|
'show_on_teaser' => false, |
213
|
|
|
'show_on_form' => false, |
214
|
|
|
'access_author' => '', |
215
|
|
|
'i18n' => 0, |
216
|
|
|
'flag_confirmation' => 'Are you sure you want to flag this content as offensive?', |
217
|
|
|
'unflag_confirmation' => 'Are you sure you want to flag this content as non-offensive?', |
218
|
|
|
'reset_short' => 'Reset flags', |
219
|
|
|
'reset_long' => 'Reset all flags on this content', |
220
|
|
|
'reset_confirmation' => 'Are you sure you want to reset all flags on this content?', |
221
|
|
|
'status' => false, |
222
|
|
|
'locked' => array ( |
|
|
|
|
223
|
|
|
'name' => 'name', |
224
|
|
|
'global' => 'global', |
225
|
|
|
), |
226
|
|
|
'module' => 'flag_abuse_reason', |
227
|
|
|
'api_version' => 2, |
228
|
|
|
); |
229
|
|
|
|
230
|
|
|
// Exported flag: "Node Abuse 4". |
231
|
|
|
$flags[] = array ( |
|
|
|
|
232
|
|
|
'content_type' => 'node', |
233
|
|
|
'name' => 'abuse_node_4', |
234
|
|
|
'title' => 'Node Abuse 4', |
235
|
|
|
'global' => false, |
236
|
|
|
'types' => array ( |
|
|
|
|
237
|
|
|
'0' => 'forum', |
238
|
|
|
'1' => 'news', |
239
|
|
|
'2' => 'team_forum', |
240
|
|
|
), |
241
|
|
|
'events' => array ( |
|
|
|
|
242
|
|
|
0 => 'flag', |
243
|
|
|
1 => 'unflag', |
244
|
|
|
2 => 'reset', |
245
|
|
|
), |
246
|
|
|
'flag_short' => 'Flag as offensive', |
247
|
|
|
'flag_long' => 'Flag this content as offensive.', |
248
|
|
|
'flag_message' => '', |
249
|
|
|
'unflag_short' => 'Flag as non-offensive', |
250
|
|
|
'unflag_long' => 'Flag this content as non-offensive.', |
251
|
|
|
'unflag_message' => '', |
252
|
|
|
'unflag_denied_text' => '', |
253
|
|
|
'link_type' => 'confirm', |
254
|
|
|
'roles' => array ( |
|
|
|
|
255
|
|
|
'flag' => array ( |
|
|
|
|
256
|
|
|
0 => '2', |
257
|
|
|
), |
258
|
|
|
'unflag' => array ( |
|
|
|
|
259
|
|
|
0 => '2', |
260
|
|
|
), |
261
|
|
|
), |
262
|
|
|
'show_on_page' => true, |
263
|
|
|
'show_on_teaser' => false, |
264
|
|
|
'show_on_form' => false, |
265
|
|
|
'access_author' => '', |
266
|
|
|
'i18n' => 0, |
267
|
|
|
'flag_confirmation' => 'Are you sure you want to flag this content as offensive?', |
268
|
|
|
'unflag_confirmation' => 'Are you sure you want to flag this content as non-offensive?', |
269
|
|
|
'reset_short' => 'Reset flags', |
270
|
|
|
'reset_long' => 'Reset all flags on this content', |
271
|
|
|
'reset_confirmation' => 'Are you sure you want to reset all flags on this content?', |
272
|
|
|
'status' => false, |
273
|
|
|
'locked' => array ( |
|
|
|
|
274
|
|
|
'name' => 'name', |
275
|
|
|
'global' => 'global', |
276
|
|
|
), |
277
|
|
|
'module' => 'flag_abuse_reason', |
278
|
|
|
'api_version' => 2, |
279
|
|
|
); |
280
|
|
|
|
281
|
|
|
// Exported flag: "Node Abuse 5". |
282
|
|
|
$flags[] = array ( |
|
|
|
|
283
|
|
|
'content_type' => 'node', |
284
|
|
|
'name' => 'abuse_node_5', |
285
|
|
|
'title' => 'Node Abuse 5', |
286
|
|
|
'global' => false, |
287
|
|
|
'types' => array ( |
|
|
|
|
288
|
|
|
'0' => 'forum', |
289
|
|
|
'1' => 'news', |
290
|
|
|
'2' => 'team_forum', |
291
|
|
|
), |
292
|
|
|
'events' => array ( |
|
|
|
|
293
|
|
|
0 => 'flag', |
294
|
|
|
1 => 'unflag', |
295
|
|
|
2 => 'reset', |
296
|
|
|
), |
297
|
|
|
'flag_short' => 'Flag as offensive', |
298
|
|
|
'flag_long' => 'Flag this content as offensive.', |
299
|
|
|
'flag_message' => '', |
300
|
|
|
'unflag_short' => 'Flag as non-offensive', |
301
|
|
|
'unflag_long' => 'Flag this content as non-offensive.', |
302
|
|
|
'unflag_message' => '', |
303
|
|
|
'unflag_denied_text' => '', |
304
|
|
|
'link_type' => 'confirm', |
305
|
|
|
'roles' => array ( |
|
|
|
|
306
|
|
|
'flag' => array ( |
|
|
|
|
307
|
|
|
0 => '2', |
308
|
|
|
), |
309
|
|
|
'unflag' => array ( |
|
|
|
|
310
|
|
|
0 => '2', |
311
|
|
|
), |
312
|
|
|
), |
313
|
|
|
'show_on_page' => true, |
314
|
|
|
'show_on_teaser' => false, |
315
|
|
|
'show_on_form' => false, |
316
|
|
|
'access_author' => '', |
317
|
|
|
'i18n' => 0, |
318
|
|
|
'flag_confirmation' => 'Are you sure you want to flag this content as offensive?', |
319
|
|
|
'unflag_confirmation' => 'Are you sure you want to flag this content as non-offensive?', |
320
|
|
|
'reset_short' => 'Reset flags', |
321
|
|
|
'reset_long' => 'Reset all flags on this content', |
322
|
|
|
'reset_confirmation' => 'Are you sure you want to reset all flags on this content?', |
323
|
|
|
'status' => false, |
324
|
|
|
'locked' => array ( |
|
|
|
|
325
|
|
|
'name' => 'name', |
326
|
|
|
'global' => 'global', |
327
|
|
|
), |
328
|
|
|
'module' => 'flag_abuse_reason', |
329
|
|
|
'api_version' => 2, |
330
|
|
|
); |
331
|
|
|
|
332
|
|
|
return $flags; |
333
|
|
|
} |
334
|
|
|
|
335
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
336
|
|
|
* Comment Flags |
337
|
|
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * */ |
338
|
|
|
function _flag_abuse_reason_abuse_comment_flags(&$flags) { |
339
|
|
|
|
340
|
|
|
// Exported flag: "Comment Abuse meta". |
341
|
|
|
$flags[] = array( |
342
|
|
|
'content_type' => 'comment', |
343
|
|
|
'name' => 'abuse_comment_meta', |
344
|
|
|
'title' => 'Comment Abuse meta', |
345
|
|
|
'global' => '0', |
346
|
|
|
'types' => array( |
347
|
|
|
'0' => 'forum', |
348
|
|
|
'1' => 'news', |
349
|
|
|
'2' => 'team_forum', |
350
|
|
|
), |
351
|
|
|
'events' => array ( |
|
|
|
|
352
|
|
|
0 => 'flag', |
353
|
|
|
1 => 'unflag', |
354
|
|
|
), |
355
|
|
|
'flag_short' => 'Meta Flag for comment', |
356
|
|
|
'flag_long' => 'Meta Flag for comment.', |
357
|
|
|
'flag_message' => '', |
358
|
|
|
'unflag_short' => 'Meta Flag for comment', |
359
|
|
|
'unflag_long' => 'Meta Flag for comment.', |
360
|
|
|
'unflag_message' => '', |
361
|
|
|
'unflag_denied_text' => '', |
362
|
|
|
'link_type' => 'confirm', |
363
|
|
|
'roles' => array( |
364
|
|
|
'flag' => array( |
365
|
|
|
'0' => 2, |
366
|
|
|
), |
367
|
|
|
'unflag' => array( |
368
|
|
|
'0' => 2, |
369
|
|
|
), |
370
|
|
|
), |
371
|
|
|
'weight' => 0, |
372
|
|
|
'access_author' => '', |
373
|
|
|
'show_on_comment' => 0, |
374
|
|
|
'flag_confirmation' => 'Are you sure you want to flag this content?', |
375
|
|
|
'unflag_confirmation' => 'Are you sure you want to unflag this content?', |
376
|
|
|
'reset_short' => 'Reset flags', |
377
|
|
|
'reset_long' => 'Reset all flags on this comment', |
378
|
|
|
'reset_confirmation' => 'Are you sure you want to reset all flags on this comment?', |
379
|
|
|
'status' => false, |
380
|
|
|
'show_on_teaser' => false, |
381
|
|
|
'locked' => array ( |
|
|
|
|
382
|
|
|
'name' => 'name', |
383
|
|
|
'global' => 'global', |
384
|
|
|
), |
385
|
|
|
'module' => 'flag_abuse_reason', |
386
|
|
|
'api_version' => 2, |
387
|
|
|
); |
388
|
|
|
|
389
|
|
|
// Exported flag: "Comment Abuse 1". |
390
|
|
|
$flags[] = array ( |
|
|
|
|
391
|
|
|
'content_type' => 'comment', |
392
|
|
|
'name' => 'abuse_comment_1', |
393
|
|
|
'title' => 'Comment Abuse 1', |
394
|
|
|
'global' => false, |
395
|
|
|
'types' => array ( |
|
|
|
|
396
|
|
|
'0' => 'forum', |
397
|
|
|
'1' => 'news', |
398
|
|
|
'2' => 'team_forum', |
399
|
|
|
), |
400
|
|
|
'events' => array ( |
|
|
|
|
401
|
|
|
0 => 'flag', |
402
|
|
|
1 => 'unflag', |
403
|
|
|
), |
404
|
|
|
'flag_short' => 'Flag as offensive', |
405
|
|
|
'flag_long' => 'Flag this content as offensive.', |
406
|
|
|
'flag_message' => '', |
407
|
|
|
'unflag_short' => 'Flag as non-offensive', |
408
|
|
|
'unflag_long' => 'Flag this content as non-offensive.', |
409
|
|
|
'unflag_message' => '', |
410
|
|
|
'unflag_denied_text' => '', |
411
|
|
|
'link_type' => 'confirm', |
412
|
|
|
'roles' => array ( |
|
|
|
|
413
|
|
|
'flag' => array ( |
|
|
|
|
414
|
|
|
0 => '2', |
415
|
|
|
), |
416
|
|
|
'unflag' => array ( |
|
|
|
|
417
|
|
|
0 => '2', |
418
|
|
|
), |
419
|
|
|
), |
420
|
|
|
'access_author' => '', |
421
|
|
|
'show_on_comment' => true, |
422
|
|
|
'flag_confirmation' => 'Are you sure you want to flag this content as offensive?', |
423
|
|
|
'unflag_confirmation' => 'Are you sure you want to flag this content as non-offensive?', |
424
|
|
|
'reset_short' => 'Reset flags', |
425
|
|
|
'reset_long' => 'Reset all flags on this comment', |
426
|
|
|
'reset_confirmation' => 'Are you sure you want to reset all flags on this comment?', |
427
|
|
|
'status' => false, |
428
|
|
|
'show_on_teaser' => false, |
429
|
|
|
'locked' => array ( |
|
|
|
|
430
|
|
|
'name' => 'name', |
431
|
|
|
'global' => 'global', |
432
|
|
|
), |
433
|
|
|
'module' => 'flag_abuse_reason', |
434
|
|
|
'api_version' => 2, |
435
|
|
|
); |
436
|
|
|
|
437
|
|
|
// Exported flag: "Comment Abuse 2". |
438
|
|
|
$flags[] = array ( |
|
|
|
|
439
|
|
|
'content_type' => 'comment', |
440
|
|
|
'name' => 'abuse_comment_2', |
441
|
|
|
'title' => 'Comment Abuse 2', |
442
|
|
|
'global' => false, |
443
|
|
|
'types' => array ( |
|
|
|
|
444
|
|
|
'0' => 'forum', |
445
|
|
|
'1' => 'news', |
446
|
|
|
'2' => 'team_forum', |
447
|
|
|
), |
448
|
|
|
'events' => array ( |
|
|
|
|
449
|
|
|
0 => 'flag', |
450
|
|
|
1 => 'unflag', |
451
|
|
|
), |
452
|
|
|
'flag_short' => 'Flag as offensive', |
453
|
|
|
'flag_long' => 'Flag this content as offensive.', |
454
|
|
|
'flag_message' => '', |
455
|
|
|
'unflag_short' => 'Flag as non-offensive', |
456
|
|
|
'unflag_long' => 'Flag this content as non-offensive.', |
457
|
|
|
'unflag_message' => '', |
458
|
|
|
'unflag_denied_text' => '', |
459
|
|
|
'link_type' => 'confirm', |
460
|
|
|
'roles' => array ( |
|
|
|
|
461
|
|
|
'flag' => array ( |
|
|
|
|
462
|
|
|
0 => '2', |
463
|
|
|
), |
464
|
|
|
'unflag' => array ( |
|
|
|
|
465
|
|
|
0 => '2', |
466
|
|
|
), |
467
|
|
|
), |
468
|
|
|
'access_author' => '', |
469
|
|
|
'show_on_comment' => true, |
470
|
|
|
'flag_confirmation' => 'Are you sure you want to flag this content as offensive?', |
471
|
|
|
'unflag_confirmation' => 'Are you sure you want to flag this content as non-offensive?', |
472
|
|
|
'reset_short' => 'Reset flags', |
473
|
|
|
'reset_long' => 'Reset all flags on this comment', |
474
|
|
|
'reset_confirmation' => 'Are you sure you want to reset all flags on this comment?', |
475
|
|
|
'status' => false, |
476
|
|
|
'show_on_teaser' => false, |
477
|
|
|
'locked' => array ( |
|
|
|
|
478
|
|
|
'name' => 'name', |
479
|
|
|
'global' => 'global', |
480
|
|
|
), |
481
|
|
|
'module' => 'flag_abuse_reason', |
482
|
|
|
'api_version' => 2, |
483
|
|
|
); |
484
|
|
|
|
485
|
|
|
// Exported flag: "Comment Abuse 3". |
486
|
|
|
$flags[] = array ( |
|
|
|
|
487
|
|
|
'content_type' => 'comment', |
488
|
|
|
'name' => 'abuse_comment_3', |
489
|
|
|
'title' => 'Comment Abuse 3', |
490
|
|
|
'global' => false, |
491
|
|
|
'types' => array ( |
|
|
|
|
492
|
|
|
'0' => 'forum', |
493
|
|
|
'1' => 'news', |
494
|
|
|
'2' => 'team_forum', |
495
|
|
|
), |
496
|
|
|
'events' => array ( |
|
|
|
|
497
|
|
|
0 => 'flag', |
498
|
|
|
1 => 'unflag', |
499
|
|
|
), |
500
|
|
|
'flag_short' => 'Flag as offensive', |
501
|
|
|
'flag_long' => 'Flag this content as offensive.', |
502
|
|
|
'flag_message' => '', |
503
|
|
|
'unflag_short' => 'Flag as non-offensive', |
504
|
|
|
'unflag_long' => 'Flag this content as non-offensive.', |
505
|
|
|
'unflag_message' => '', |
506
|
|
|
'unflag_denied_text' => '', |
507
|
|
|
'link_type' => 'confirm', |
508
|
|
|
'roles' => array ( |
|
|
|
|
509
|
|
|
'flag' => array ( |
|
|
|
|
510
|
|
|
0 => '2', |
511
|
|
|
), |
512
|
|
|
'unflag' => array ( |
|
|
|
|
513
|
|
|
0 => '2', |
514
|
|
|
), |
515
|
|
|
), |
516
|
|
|
'access_author' => '', |
517
|
|
|
'show_on_comment' => true, |
518
|
|
|
'flag_confirmation' => 'Are you sure you want to flag this content as offensive?', |
519
|
|
|
'unflag_confirmation' => 'Are you sure you want to flag this content as non-offensive?', |
520
|
|
|
'reset_short' => 'Reset flags', |
521
|
|
|
'reset_long' => 'Reset all flags on this comment', |
522
|
|
|
'reset_confirmation' => 'Are you sure you want to reset all flags on this comment?', |
523
|
|
|
'status' => false, |
524
|
|
|
'show_on_teaser' => false, |
525
|
|
|
'locked' => array ( |
|
|
|
|
526
|
|
|
'name' => 'name', |
527
|
|
|
'global' => 'global', |
528
|
|
|
), |
529
|
|
|
'module' => 'flag_abuse_reason', |
530
|
|
|
'api_version' => 2, |
531
|
|
|
); |
532
|
|
|
|
533
|
|
|
// Exported flag: "Comment Abuse 4". |
534
|
|
|
$flags[] = array ( |
|
|
|
|
535
|
|
|
'content_type' => 'comment', |
536
|
|
|
'name' => 'abuse_comment_4', |
537
|
|
|
'title' => 'Comment Abuse 4', |
538
|
|
|
'global' => false, |
539
|
|
|
'types' => array ( |
|
|
|
|
540
|
|
|
'0' => 'forum', |
541
|
|
|
'1' => 'news', |
542
|
|
|
'2' => 'team_forum', |
543
|
|
|
), |
544
|
|
|
'events' => array ( |
|
|
|
|
545
|
|
|
0 => 'flag', |
546
|
|
|
1 => 'unflag', |
547
|
|
|
), |
548
|
|
|
'flag_short' => 'Flag as offensive', |
549
|
|
|
'flag_long' => 'Flag this content as offensive.', |
550
|
|
|
'flag_message' => '', |
551
|
|
|
'unflag_short' => 'Flag as non-offensive', |
552
|
|
|
'unflag_long' => 'Flag this content as non-offensive.', |
553
|
|
|
'unflag_message' => '', |
554
|
|
|
'unflag_denied_text' => '', |
555
|
|
|
'link_type' => 'confirm', |
556
|
|
|
'roles' => array ( |
|
|
|
|
557
|
|
|
'flag' => array ( |
|
|
|
|
558
|
|
|
0 => '2', |
559
|
|
|
), |
560
|
|
|
'unflag' => array ( |
|
|
|
|
561
|
|
|
0 => '2', |
562
|
|
|
), |
563
|
|
|
), |
564
|
|
|
'access_author' => '', |
565
|
|
|
'show_on_comment' => true, |
566
|
|
|
'flag_confirmation' => 'Are you sure you want to flag this content as offensive?', |
567
|
|
|
'unflag_confirmation' => 'Are you sure you want to flag this content as non-offensive?', |
568
|
|
|
'reset_short' => 'Reset flags', |
569
|
|
|
'reset_long' => 'Reset all flags on this comment', |
570
|
|
|
'reset_confirmation' => 'Are you sure you want to reset all flags on this comment?', |
571
|
|
|
'status' => false, |
572
|
|
|
'show_on_teaser' => false, |
573
|
|
|
'locked' => array ( |
|
|
|
|
574
|
|
|
'name' => 'name', |
575
|
|
|
'global' => 'global', |
576
|
|
|
), |
577
|
|
|
'module' => 'flag_abuse_reason', |
578
|
|
|
'api_version' => 2, |
579
|
|
|
); |
580
|
|
|
|
581
|
|
|
// Exported flag: "Comment Abuse 5". |
582
|
|
|
$flags[] = array ( |
|
|
|
|
583
|
|
|
'content_type' => 'comment', |
584
|
|
|
'name' => 'abuse_comment_5', |
585
|
|
|
'title' => 'Comment Abuse 5', |
586
|
|
|
'global' => false, |
587
|
|
|
'types' => array ( |
|
|
|
|
588
|
|
|
'0' => 'forum', |
589
|
|
|
'1' => 'news', |
590
|
|
|
'2' => 'team_forum', |
591
|
|
|
), |
592
|
|
|
'events' => array ( |
|
|
|
|
593
|
|
|
0 => 'flag', |
594
|
|
|
1 => 'unflag', |
595
|
|
|
), |
596
|
|
|
'flag_short' => 'Flag as offensive', |
597
|
|
|
'flag_long' => 'Flag this content as offensive.', |
598
|
|
|
'flag_message' => '', |
599
|
|
|
'unflag_short' => 'Flag as non-offensive', |
600
|
|
|
'unflag_long' => 'Flag this content as non-offensive.', |
601
|
|
|
'unflag_message' => '', |
602
|
|
|
'unflag_denied_text' => '', |
603
|
|
|
'link_type' => 'confirm', |
604
|
|
|
'roles' => array ( |
|
|
|
|
605
|
|
|
'flag' => array ( |
|
|
|
|
606
|
|
|
0 => '2', |
607
|
|
|
), |
608
|
|
|
'unflag' => array ( |
|
|
|
|
609
|
|
|
0 => '2', |
610
|
|
|
), |
611
|
|
|
), |
612
|
|
|
'access_author' => '', |
613
|
|
|
'show_on_comment' => true, |
614
|
|
|
'flag_confirmation' => 'Are you sure you want to flag this content as offensive?', |
615
|
|
|
'unflag_confirmation' => 'Are you sure you want to flag this content as non-offensive?', |
616
|
|
|
'reset_short' => 'Reset flags', |
617
|
|
|
'reset_long' => 'Reset all flags on this comment', |
618
|
|
|
'reset_confirmation' => 'Are you sure you want to reset all flags on this comment?', |
619
|
|
|
'status' => false, |
620
|
|
|
'show_on_teaser' => false, |
621
|
|
|
'locked' => array ( |
|
|
|
|
622
|
|
|
'name' => 'name', |
623
|
|
|
'global' => 'global', |
624
|
|
|
), |
625
|
|
|
'module' => 'flag_abuse_reason', |
626
|
|
|
'api_version' => 2, |
627
|
|
|
); |
628
|
|
|
|
629
|
|
|
return $flags; |
630
|
|
|
} |
631
|
|
|
|
632
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
633
|
|
|
* User Flags |
634
|
|
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * */ |
635
|
|
|
function _flag_abuse_reason_abuse_user_flags(&$flags) { |
636
|
|
|
// Exported flag: "User Abuse meta". |
637
|
|
|
$flags[] = array ( |
|
|
|
|
638
|
|
|
'content_type' => 'user', |
639
|
|
|
'name' => 'abuse_user_meta', |
640
|
|
|
'title' => 'User Abuse Meta', |
641
|
|
|
'global' => false, |
642
|
|
|
'types' => array ( |
|
|
|
|
643
|
|
|
), |
644
|
|
|
'events' => array ( |
|
|
|
|
645
|
|
|
0 => 'flag', |
646
|
|
|
1 => 'unflag', |
647
|
|
|
), |
648
|
|
|
'flag_short' => 'Meta Flag for User', |
649
|
|
|
'flag_long' => 'Meta Flag for User.', |
650
|
|
|
'flag_message' => '', |
651
|
|
|
'unflag_short' => 'Meta Flag for User', |
652
|
|
|
'unflag_long' => 'Meta Flag for User.', |
653
|
|
|
'unflag_message' => '', |
654
|
|
|
'unflag_denied_text' => '', |
655
|
|
|
'link_type' => 'confirm', |
656
|
|
|
'roles' => array ( |
|
|
|
|
657
|
|
|
'flag' => array ( |
|
|
|
|
658
|
|
|
0 => '2', |
659
|
|
|
), |
660
|
|
|
'unflag' => array ( |
|
|
|
|
661
|
|
|
0 => '2', |
662
|
|
|
), |
663
|
|
|
), |
664
|
|
|
'show_on_profile' => true, |
665
|
|
|
'access_uid' => '', |
666
|
|
|
'flag_confirmation' => 'Are you sure you want to report this user?', |
667
|
|
|
'unflag_confirmation' => 'Are you sure you want to remove your report of this user?', |
668
|
|
|
'reset_short' => 'Reset flags', |
669
|
|
|
'reset_long' => 'Reset all flags on this user', |
670
|
|
|
'reset_confirmation' => 'Are you sure you want to reset all flags on this user?', |
671
|
|
|
'status' => false, |
672
|
|
|
'show_on_teaser' => false, |
673
|
|
|
'locked' => array ( |
|
|
|
|
674
|
|
|
'name' => 'name', |
675
|
|
|
'global' => 'global', |
676
|
|
|
), |
677
|
|
|
'module' => 'flag_abuse_reason', |
678
|
|
|
'api_version' => 2, |
679
|
|
|
); |
680
|
|
|
|
681
|
|
|
// Exported flag: "User Abuse 1". |
682
|
|
|
$flags[] = array ( |
|
|
|
|
683
|
|
|
'content_type' => 'user', |
684
|
|
|
'name' => 'abuse_user_1', |
685
|
|
|
'title' => 'User Abuse 1', |
686
|
|
|
'global' => false, |
687
|
|
|
'types' => array ( |
|
|
|
|
688
|
|
|
), |
689
|
|
|
'events' => array ( |
|
|
|
|
690
|
|
|
0 => 'flag', |
691
|
|
|
1 => 'unflag', |
692
|
|
|
), |
693
|
|
|
'flag_short' => 'Report User', |
694
|
|
|
'flag_long' => 'Report this user as offensive.', |
695
|
|
|
'flag_message' => '', |
696
|
|
|
'unflag_short' => 'Remove Report', |
697
|
|
|
'unflag_long' => 'Remove your report about this user.', |
698
|
|
|
'unflag_message' => '', |
699
|
|
|
'unflag_denied_text' => '', |
700
|
|
|
'link_type' => 'confirm', |
701
|
|
|
'roles' => array ( |
|
|
|
|
702
|
|
|
'flag' => array ( |
|
|
|
|
703
|
|
|
0 => '2', |
704
|
|
|
), |
705
|
|
|
'unflag' => array ( |
|
|
|
|
706
|
|
|
0 => '2', |
707
|
|
|
), |
708
|
|
|
), |
709
|
|
|
'show_on_profile' => true, |
710
|
|
|
'access_uid' => '', |
711
|
|
|
'flag_confirmation' => 'Are you sure you want to report this user as offensive?', |
712
|
|
|
'unflag_confirmation' => 'Are you sure you want to remove your report of this user?', |
713
|
|
|
'reset_short' => 'Reset flags', |
714
|
|
|
'reset_long' => 'Reset all flags on this user', |
715
|
|
|
'reset_confirmation' => 'Are you sure you want to reset all flags on this user?', |
716
|
|
|
'status' => false, |
717
|
|
|
'show_on_teaser' => false, |
718
|
|
|
'locked' => array ( |
|
|
|
|
719
|
|
|
'name' => 'name', |
720
|
|
|
'global' => 'global', |
721
|
|
|
), |
722
|
|
|
'module' => 'flag_abuse_reason', |
723
|
|
|
'api_version' => 2, |
724
|
|
|
); |
725
|
|
|
|
726
|
|
|
// Exported flag: "User Abuse 2". |
727
|
|
|
$flags[] = array ( |
|
|
|
|
728
|
|
|
'content_type' => 'user', |
729
|
|
|
'name' => 'abuse_user_2', |
730
|
|
|
'title' => 'User Abuse 2', |
731
|
|
|
'global' => false, |
732
|
|
|
'types' => array ( |
|
|
|
|
733
|
|
|
), |
734
|
|
|
'events' => array ( |
|
|
|
|
735
|
|
|
0 => 'flag', |
736
|
|
|
1 => 'unflag', |
737
|
|
|
), |
738
|
|
|
'flag_short' => 'Report User', |
739
|
|
|
'flag_long' => 'Report this user as offensive.', |
740
|
|
|
'flag_message' => '', |
741
|
|
|
'unflag_short' => 'Remove Report', |
742
|
|
|
'unflag_long' => 'Remove your report about this user.', |
743
|
|
|
'unflag_message' => '', |
744
|
|
|
'unflag_denied_text' => '', |
745
|
|
|
'link_type' => 'confirm', |
746
|
|
|
'roles' => array ( |
|
|
|
|
747
|
|
|
'flag' => array ( |
|
|
|
|
748
|
|
|
0 => '2', |
749
|
|
|
), |
750
|
|
|
'unflag' => array ( |
|
|
|
|
751
|
|
|
0 => '2', |
752
|
|
|
), |
753
|
|
|
), |
754
|
|
|
'show_on_profile' => true, |
755
|
|
|
'access_uid' => '', |
756
|
|
|
'flag_confirmation' => 'Are you sure you want to report this user as offensive?', |
757
|
|
|
'unflag_confirmation' => 'Are you sure you want to remove your report of this user?', |
758
|
|
|
'reset_short' => 'Reset flags', |
759
|
|
|
'reset_long' => 'Reset all flags on this user', |
760
|
|
|
'reset_confirmation' => 'Are you sure you want to reset all flags on this user?', |
761
|
|
|
'status' => false, |
762
|
|
|
'show_on_teaser' => false, |
763
|
|
|
'locked' => array ( |
|
|
|
|
764
|
|
|
'name' => 'name', |
765
|
|
|
'global' => 'global', |
766
|
|
|
), |
767
|
|
|
'module' => 'flag_abuse_reason', |
768
|
|
|
'api_version' => 2, |
769
|
|
|
); |
770
|
|
|
|
771
|
|
|
// Exported flag: "User Abuse 3". |
772
|
|
|
$flags[] = array ( |
|
|
|
|
773
|
|
|
'content_type' => 'user', |
774
|
|
|
'name' => 'abuse_user_3', |
775
|
|
|
'title' => 'User Abuse 3', |
776
|
|
|
'global' => false, |
777
|
|
|
'types' => array ( |
|
|
|
|
778
|
|
|
), |
779
|
|
|
'events' => array ( |
|
|
|
|
780
|
|
|
0 => 'flag', |
781
|
|
|
1 => 'unflag', |
782
|
|
|
), |
783
|
|
|
'flag_short' => 'Report User', |
784
|
|
|
'flag_long' => 'Report this user as offensive.', |
785
|
|
|
'flag_message' => '', |
786
|
|
|
'unflag_short' => 'Remove Report', |
787
|
|
|
'unflag_long' => 'Remove your report about this user.', |
788
|
|
|
'unflag_message' => '', |
789
|
|
|
'unflag_denied_text' => '', |
790
|
|
|
'link_type' => 'confirm', |
791
|
|
|
'roles' => array ( |
|
|
|
|
792
|
|
|
'flag' => array ( |
|
|
|
|
793
|
|
|
0 => '2', |
794
|
|
|
), |
795
|
|
|
'unflag' => array ( |
|
|
|
|
796
|
|
|
0 => '2', |
797
|
|
|
), |
798
|
|
|
), |
799
|
|
|
'show_on_profile' => true, |
800
|
|
|
'access_uid' => '', |
801
|
|
|
'flag_confirmation' => 'Are you sure you want to report this user as offensive?', |
802
|
|
|
'unflag_confirmation' => 'Are you sure you want to remove your report of this user?', |
803
|
|
|
'reset_short' => 'Reset flags', |
804
|
|
|
'reset_long' => 'Reset all flags on this user', |
805
|
|
|
'reset_confirmation' => 'Are you sure you want to reset all flags on this user?', |
806
|
|
|
'status' => false, |
807
|
|
|
'show_on_teaser' => false, |
808
|
|
|
'locked' => array ( |
|
|
|
|
809
|
|
|
'name' => 'name', |
810
|
|
|
'global' => 'global', |
811
|
|
|
), |
812
|
|
|
'module' => 'flag_abuse_reason', |
813
|
|
|
'api_version' => 2, |
814
|
|
|
); |
815
|
|
|
|
816
|
|
|
// Exported flag: "User Abuse 4". |
817
|
|
|
$flags[] = array ( |
|
|
|
|
818
|
|
|
'content_type' => 'user', |
819
|
|
|
'name' => 'abuse_user_4', |
820
|
|
|
'title' => 'User Abuse 4', |
821
|
|
|
'global' => false, |
822
|
|
|
'types' => array ( |
|
|
|
|
823
|
|
|
), |
824
|
|
|
'events' => array ( |
|
|
|
|
825
|
|
|
0 => 'flag', |
826
|
|
|
1 => 'unflag', |
827
|
|
|
), |
828
|
|
|
'flag_short' => 'Report User', |
829
|
|
|
'flag_long' => 'Report this user as offensive.', |
830
|
|
|
'flag_message' => '', |
831
|
|
|
'unflag_short' => 'Remove Report', |
832
|
|
|
'unflag_long' => 'Remove your report about this user.', |
833
|
|
|
'unflag_message' => '', |
834
|
|
|
'unflag_denied_text' => '', |
835
|
|
|
'link_type' => 'confirm', |
836
|
|
|
'roles' => array ( |
|
|
|
|
837
|
|
|
'flag' => array ( |
|
|
|
|
838
|
|
|
0 => '2', |
839
|
|
|
), |
840
|
|
|
'unflag' => array ( |
|
|
|
|
841
|
|
|
0 => '2', |
842
|
|
|
), |
843
|
|
|
), |
844
|
|
|
'show_on_profile' => true, |
845
|
|
|
'access_uid' => '', |
846
|
|
|
'flag_confirmation' => 'Are you sure you want to report this user as offensive?', |
847
|
|
|
'unflag_confirmation' => 'Are you sure you want to remove your report of this user?', |
848
|
|
|
'reset_short' => 'Reset flags', |
849
|
|
|
'reset_long' => 'Reset all flags on this user', |
850
|
|
|
'reset_confirmation' => 'Are you sure you want to reset all flags on this user?', |
851
|
|
|
'status' => false, |
852
|
|
|
'show_on_teaser' => false, |
853
|
|
|
'locked' => array ( |
|
|
|
|
854
|
|
|
'name' => 'name', |
855
|
|
|
'global' => 'global', |
856
|
|
|
), |
857
|
|
|
'module' => 'flag_abuse_reason', |
858
|
|
|
'api_version' => 2, |
859
|
|
|
); |
860
|
|
|
|
861
|
|
|
return $flags; |
862
|
|
|
} |
863
|
|
|
|