/[drupal]/contributions/modules/flag_abuse/includes/flag_abuse.flag_default.inc
ViewVC logotype

Diff of /contributions/modules/flag_abuse/includes/flag_abuse.flag_default.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1, Thu Mar 19 22:11:19 2009 UTC revision 1.1.4.1, Wed Nov 4 15:48:39 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id:$  // $Id: flag_abuse.flag_default.inc,v 1.1 2009/03/19 22:11:19 sirkitree Exp $
3    
4  function _flag_abuse_abuse_node_flags(&$flags) {  function _flag_abuse_abuse_node_flags(&$flags) {
5    $flags[] = array(    // Exported flag: "Node Abuse".
6      $flags[] = array (
7      'content_type' => 'node',      'content_type' => 'node',
8      'name' => 'abuse_node',      'name' => 'abuse_node',
9      'title' => 'Node Abuse',      'title' => 'Node Abuse',
10      'roles' => array(      'global' => false,
11        0 => '2',      'types' => array (
12          0 => 'story',
13        ),
14        'events' => array (
15          0 => 'flag',
16          1 => 'unflag',
17          2 => 'reset',
18      ),      ),
     'global' => FALSE,  
19      'flag_short' => 'Flag as offensive',      'flag_short' => 'Flag as offensive',
20      'flag_long' => 'Flag this content as offensive.',      'flag_long' => 'Flag this content as offensive.',
21      'flag_confirmation' => 'Are you sure you want to flag this content as offensive?',      'flag_message' => '',
22      'unflag_short' => 'Flag as non-offensive',      'unflag_short' => 'Flag as non-offensive',
23      'unflag_long' => 'Flag this content as non-offensive.',      'unflag_long' => 'Flag this content as non-offensive.',
24      'unflag_confirmation' => 'Are you sure you want to flag this content as non-offensive?',      'unflag_message' => '',
25      'types' => array('story'),      'unflag_denied_text' => '',
     'status' => FALSE,  
     'show_on_teaser' => FALSE,  
26      'link_type' => 'confirm',      'link_type' => 'confirm',
27      'locked' => array('name', 'global'),      'roles' => array (
28          'flag' => array (
29            0 => '2',
30          ),
31          'unflag' => array (
32            0 => '2',
33          ),
34        ),
35        'show_on_page' => true,
36        'show_on_teaser' => false,
37        'show_on_form' => false,
38        'access_author' => '',
39        'i18n' => 0,
40        'flag_confirmation' => 'Are you sure you want to flag this content as offensive?',
41        'unflag_confirmation' => 'Are you sure you want to flag this content as non-offensive?',
42        'reset_short' => 'Reset flags',
43        'reset_long' => 'Reset all flags on this content',
44        'reset_confirmation' => 'Are you sure you want to reset all flags on this content?',
45        'status' => false,
46        'locked' => array (
47          'name' => 'name',
48          'global' => 'global',
49        ),
50        'module' => 'flag_abuse',
51        'api_version' => 2,
52    );    );
53    return $flags;    return $flags;
54  }  }
55    
56  function _flag_abuse_abuse_comment_flags(&$flags) {  function _flag_abuse_abuse_comment_flags(&$flags) {
57    $flags[] = array(    // Exported flag: "Comment Abuse".
58      $flags[] = array (
59      'content_type' => 'comment',      'content_type' => 'comment',
60      'name' => 'abuse_comment',      'name' => 'abuse_comment',
61      'title' => 'Comment Abuse',      'title' => 'Comment Abuse',
62      'roles' => array(      'global' => false,
63        0 => '2',      'types' => array (
64          0 => 'story',
65        ),
66        'events' => array (
67          0 => 'flag',
68          1 => 'unflag',
69      ),      ),
     'global' => FALSE,  
70      'flag_short' => 'Flag as offensive',      'flag_short' => 'Flag as offensive',
71      'flag_long' => 'Flag this content as offensive.',      'flag_long' => 'Flag this content as offensive.',
72      'flag_confirmation' => 'Are you sure you want to flag this content as offensive?',      'flag_message' => '',
73      'unflag_short' => 'Flag as non-offensive',      'unflag_short' => 'Flag as non-offensive',
74      'unflag_long' => 'Flag this content as non-offensive.',      'unflag_long' => 'Flag this content as non-offensive.',
75      'unflag_confirmation' => 'Are you sure you want to flag this content as non-offensive?',      'unflag_message' => '',
76      'types' => array('story'),      'unflag_denied_text' => '',
     'status' => FALSE,  
     'show_on_teaser' => FALSE,  
77      'link_type' => 'confirm',      'link_type' => 'confirm',
78      'locked' => array('name', 'global'),      'roles' => array (
79          'flag' => array (
80            0 => '2',
81          ),
82          'unflag' => array (
83            0 => '2',
84          ),
85        ),
86        'access_author' => '',
87        'show_on_comment' => true,
88        'flag_confirmation' => 'Are you sure you want to flag this content as offensive?',
89        'unflag_confirmation' => 'Are you sure you want to flag this content as non-offensive?',
90        'reset_short' => 'Reset flags',
91        'reset_long' => 'Reset all flags on this commnet',
92        'reset_confirmation' => 'Are you sure you want to reset all flags on this comment?',
93        'status' => false,
94        'show_on_teaser' => false,
95        'locked' => array (
96          'name' => 'name',
97          'global' => 'global',
98        ),
99        'module' => 'flag_abuse',
100        'api_version' => 2,
101    );    );
102    return $flags;    return $flags;
103  }  }
104    
105  function _flag_abuse_abuse_user_flags(&$flags) {  function _flag_abuse_abuse_user_flags(&$flags) {
106    $flags[] = array(    // Exported flag: "User Abuse".
107      $flags[] = array (
108      'content_type' => 'user',      'content_type' => 'user',
109      'name' => 'abuse_user',      'name' => 'abuse_user',
110      'title' => 'User Abuse',      'title' => 'User Abuse',
111      'roles' => array(      'global' => false,
112        0 => '2',      'types' => array (
113        ),
114        'events' => array (
115          0 => 'flag',
116          1 => 'unflag',
117      ),      ),
     'global' => FALSE,  
118      'flag_short' => 'Report User',      'flag_short' => 'Report User',
119      'flag_long' => 'Report this user as offensive.',      'flag_long' => 'Report this user as offensive.',
120      'flag_confirmation' => 'Are you sure you want to report this user as offensive?',      'flag_message' => '',
121      'unflag_short' => 'Remove Report',      'unflag_short' => 'Remove Report',
122      'unflag_long' => 'Remove your report about this user.',      'unflag_long' => 'Remove your report about this user.',
123      'unflag_confirmation' => 'Are you sure you want to remove your report of this user?',      'unflag_message' => '',
124      'status' => FALSE,      'unflag_denied_text' => '',
     'show_on_teaser' => FALSE,  
125      'link_type' => 'confirm',      'link_type' => 'confirm',
126      'locked' => array('name', 'global'),      'roles' => array (
127          'flag' => array (
128            0 => '2',
129          ),
130          'unflag' => array (
131            0 => '2',
132          ),
133        ),
134        'show_on_profile' => true,
135        'access_uid' => '',
136        'flag_confirmation' => 'Are you sure you want to report this user as offensive?',
137        'unflag_confirmation' => 'Are you sure you want to remove your report of this user?',
138        'reset_short' => 'Reset flags',
139        'reset_long' => 'Reset all flags on this user',
140        'reset_confirmation' => 'Are you sure you want to reset all flags on this user?',
141        'status' => false,
142        'show_on_teaser' => false,
143        'locked' => array (
144          'name' => 'name',
145          'global' => 'global',
146        ),
147        'module' => 'flag_abuse',
148        'api_version' => 2,
149    );    );
150    return $flags;    return $flags;
151  }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.1.4.1

  ViewVC Help
Powered by ViewVC 1.1.2