total control - admin dashboard
[indybay:drupal.git] / docs / sites / all / modules / contrib / total_control / views / control_users.view
1 <?php 
2
3 /**
4  * @file control_users.view
5  *
6  * Default view for administration of user accounts. Contains page display 
7  * only.
8  *
9  */
10
11 $view = new view();
12 $view->name = 'control_users';
13 $view->description = 'Total Control over user accounts: Contains a panel pane and a page to control user accounts.';
14 $view->tag = 'total_control';
15 $view->base_table = 'users';
16 $view->human_name = '';
17 $view->core = 0;
18 $view->api_version = '3.0';
19 $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
20
21 /* Display: Defaults */
22 $handler = $view->new_display('default', 'Defaults', 'default');
23 $handler->display->display_options['title'] = 'User Accounts';
24 $handler->display->display_options['use_more_always'] = FALSE;
25 $handler->display->display_options['access']['type'] = 'perm';
26 $handler->display->display_options['access']['perm'] = 'have total control';
27 $handler->display->display_options['cache']['type'] = 'none';
28 $handler->display->display_options['query']['type'] = 'views_query';
29 $handler->display->display_options['query']['options']['query_comment'] = FALSE;
30 $handler->display->display_options['exposed_form']['type'] = 'basic';
31 $handler->display->display_options['exposed_form']['options']['submit_button'] = 'Filter';
32 $handler->display->display_options['pager']['type'] = 'full';
33 $handler->display->display_options['pager']['options']['items_per_page'] = '35';
34 $handler->display->display_options['pager']['options']['offset'] = '0';
35 $handler->display->display_options['pager']['options']['id'] = '0';
36 $handler->display->display_options['style_plugin'] = 'table';
37 $handler->display->display_options['style_options']['columns'] = array(
38   'name' => 'name',
39   'mail' => 'mail',
40   'rid' => 'rid',
41   'status' => 'status',
42   'created' => 'created',
43   'login' => 'login',
44   'delete_node' => 'delete_node',
45   'edit_node' => 'edit_node',
46 );
47 $handler->display->display_options['style_options']['default'] = '-1';
48 $handler->display->display_options['style_options']['info'] = array(
49   'name' => array(
50     'sortable' => 1,
51     'default_sort_order' => 'asc',
52     'align' => '',
53     'separator' => '',
54     'empty_column' => 0,
55   ),
56   'mail' => array(
57     'sortable' => 1,
58     'default_sort_order' => 'asc',
59     'align' => '',
60     'separator' => '',
61     'empty_column' => 0,
62   ),
63   'rid' => array(
64     'align' => '',
65     'separator' => '',
66     'empty_column' => 0,
67   ),
68   'status' => array(
69     'sortable' => 1,
70     'default_sort_order' => 'asc',
71     'align' => '',
72     'separator' => '',
73     'empty_column' => 0,
74   ),
75   'created' => array(
76     'sortable' => 1,
77     'default_sort_order' => 'asc',
78     'align' => '',
79     'separator' => '',
80     'empty_column' => 0,
81   ),
82   'login' => array(
83     'sortable' => 1,
84     'default_sort_order' => 'asc',
85     'align' => '',
86     'separator' => '',
87     'empty_column' => 0,
88   ),
89   'delete_node' => array(
90     'align' => '',
91     'separator' => '',
92     'empty_column' => 0,
93   ),
94   'edit_node' => array(
95     'align' => '',
96     'separator' => '',
97     'empty_column' => 0,
98   ),
99 );
100 /* Field: Bulk operations: User */
101 $handler->display->display_options['fields']['views_bulk_operations']['id'] = 'views_bulk_operations';
102 $handler->display->display_options['fields']['views_bulk_operations']['table'] = 'users';
103 $handler->display->display_options['fields']['views_bulk_operations']['field'] = 'views_bulk_operations';
104 $handler->display->display_options['fields']['views_bulk_operations']['label'] = '';
105 $handler->display->display_options['fields']['views_bulk_operations']['element_label_colon'] = FALSE;
106 $handler->display->display_options['fields']['views_bulk_operations']['vbo_settings']['display_type'] = '0';
107 $handler->display->display_options['fields']['views_bulk_operations']['vbo_settings']['enable_select_all_pages'] = 1;
108 $handler->display->display_options['fields']['views_bulk_operations']['vbo_settings']['force_single'] = 0;
109 $handler->display->display_options['fields']['views_bulk_operations']['vbo_settings']['entity_load_capacity'] = '10';
110 $handler->display->display_options['fields']['views_bulk_operations']['vbo_operations'] = array(
111   'action::user_block_user_action' => array(
112     'selected' => 1,
113     'postpone_processing' => 0,
114     'skip_confirmation' => 0,
115     'override_label' => 0,
116     'label' => '',
117   ),
118   'action::views_bulk_operations_delete_item' => array(
119     'selected' => 0,
120     'postpone_processing' => 0,
121     'skip_confirmation' => 0,
122     'override_label' => 0,
123     'label' => '',
124   ),
125   'action::views_bulk_operations_script_action' => array(
126     'selected' => 0,
127     'postpone_processing' => 0,
128     'skip_confirmation' => 0,
129     'override_label' => 0,
130     'label' => '',
131   ),
132   'action::views_bulk_operations_modify_action' => array(
133     'selected' => 0,
134     'postpone_processing' => 0,
135     'skip_confirmation' => 0,
136     'override_label' => 0,
137     'label' => '',
138     'settings' => array(
139       'show_all_tokens' => 1,
140       'display_values' => array(
141         '_all_' => '_all_',
142       ),
143     ),
144   ),
145   'action::views_bulk_operations_user_roles_action' => array(
146     'selected' => 0,
147     'postpone_processing' => 0,
148     'skip_confirmation' => 0,
149     'override_label' => 0,
150     'label' => '',
151   ),
152   'action::views_bulk_operations_argument_selector_action' => array(
153     'selected' => 0,
154     'skip_confirmation' => 0,
155     'override_label' => 0,
156     'label' => '',
157     'settings' => array(
158       'url' => '',
159     ),
160   ),
161   'action::system_send_email_action' => array(
162     'selected' => 1,
163     'postpone_processing' => 0,
164     'skip_confirmation' => 1,
165     'override_label' => 0,
166     'label' => '',
167   ),
168 );
169 /* Field: User: Name */
170 $handler->display->display_options['fields']['name']['id'] = 'name';
171 $handler->display->display_options['fields']['name']['table'] = 'users';
172 $handler->display->display_options['fields']['name']['field'] = 'name';
173 /* Field: User: E-mail */
174 $handler->display->display_options['fields']['mail']['id'] = 'mail';
175 $handler->display->display_options['fields']['mail']['table'] = 'users';
176 $handler->display->display_options['fields']['mail']['field'] = 'mail';
177 /* Field: User: Roles */
178 $handler->display->display_options['fields']['rid']['id'] = 'rid';
179 $handler->display->display_options['fields']['rid']['table'] = 'users_roles';
180 $handler->display->display_options['fields']['rid']['field'] = 'rid';
181 /* Field: User: Created date */
182 $handler->display->display_options['fields']['created']['id'] = 'created';
183 $handler->display->display_options['fields']['created']['table'] = 'users';
184 $handler->display->display_options['fields']['created']['field'] = 'created';
185 $handler->display->display_options['fields']['created']['label'] = 'Created';
186 $handler->display->display_options['fields']['created']['date_format'] = 'custom';
187 $handler->display->display_options['fields']['created']['custom_date_format'] = 'm/d/Y';
188 /* Field: User: Last login */
189 $handler->display->display_options['fields']['login']['id'] = 'login';
190 $handler->display->display_options['fields']['login']['table'] = 'users';
191 $handler->display->display_options['fields']['login']['field'] = 'login';
192 $handler->display->display_options['fields']['login']['date_format'] = 'custom';
193 $handler->display->display_options['fields']['login']['custom_date_format'] = 'j/d g:ia';
194 /* Field: User: Edit link */
195 $handler->display->display_options['fields']['edit_node']['id'] = 'edit_node';
196 $handler->display->display_options['fields']['edit_node']['table'] = 'users';
197 $handler->display->display_options['fields']['edit_node']['field'] = 'edit_node';
198 $handler->display->display_options['fields']['edit_node']['label'] = 'Edit';
199 $handler->display->display_options['fields']['edit_node']['text'] = 'edit';
200 /* Sort criterion: User: Created date */
201 $handler->display->display_options['sorts']['created']['id'] = 'created';
202 $handler->display->display_options['sorts']['created']['table'] = 'users';
203 $handler->display->display_options['sorts']['created']['field'] = 'created';
204 $handler->display->display_options['sorts']['created']['order'] = 'DESC';
205 /* Filter criterion: User: Name */
206 $handler->display->display_options['filters']['uid']['id'] = 'uid';
207 $handler->display->display_options['filters']['uid']['table'] = 'users';
208 $handler->display->display_options['filters']['uid']['field'] = 'uid';
209 $handler->display->display_options['filters']['uid']['operator'] = 'not in';
210 $handler->display->display_options['filters']['uid']['value'] = array(
211   0 => 0,
212 );
213 $handler->display->display_options['filters']['uid']['expose']['label'] = 'User: Name';
214 $handler->display->display_options['filters']['uid']['expose']['operator'] = 'uid_op';
215 $handler->display->display_options['filters']['uid']['expose']['identifier'] = 'uid';
216 /* Filter criterion: User: Roles */
217 $handler->display->display_options['filters']['rid']['id'] = 'rid';
218 $handler->display->display_options['filters']['rid']['table'] = 'users_roles';
219 $handler->display->display_options['filters']['rid']['field'] = 'rid';
220 $handler->display->display_options['filters']['rid']['exposed'] = TRUE;
221 $handler->display->display_options['filters']['rid']['expose']['operator_id'] = 'rid_op';
222 $handler->display->display_options['filters']['rid']['expose']['label'] = 'Roles';
223 $handler->display->display_options['filters']['rid']['expose']['operator'] = 'rid_op';
224 $handler->display->display_options['filters']['rid']['expose']['identifier'] = 'rid';
225 /* Filter criterion: User: Name */
226 $handler->display->display_options['filters']['uid_1']['id'] = 'uid_1';
227 $handler->display->display_options['filters']['uid_1']['table'] = 'users';
228 $handler->display->display_options['filters']['uid_1']['field'] = 'uid';
229 $handler->display->display_options['filters']['uid_1']['value'] = '';
230 $handler->display->display_options['filters']['uid_1']['exposed'] = TRUE;
231 $handler->display->display_options['filters']['uid_1']['expose']['operator_id'] = 'uid_1_op';
232 $handler->display->display_options['filters']['uid_1']['expose']['label'] = 'Username';
233 $handler->display->display_options['filters']['uid_1']['expose']['operator'] = 'uid_1_op';
234 $handler->display->display_options['filters']['uid_1']['expose']['identifier'] = 'name';
235 /* Filter criterion: User: E-mail */
236 $handler->display->display_options['filters']['mail']['id'] = 'mail';
237 $handler->display->display_options['filters']['mail']['table'] = 'users';
238 $handler->display->display_options['filters']['mail']['field'] = 'mail';
239 $handler->display->display_options['filters']['mail']['operator'] = 'contains';
240 $handler->display->display_options['filters']['mail']['exposed'] = TRUE;
241 $handler->display->display_options['filters']['mail']['expose']['operator_id'] = 'mail_op';
242 $handler->display->display_options['filters']['mail']['expose']['label'] = 'E-mail';
243 $handler->display->display_options['filters']['mail']['expose']['operator'] = 'mail_op';
244 $handler->display->display_options['filters']['mail']['expose']['identifier'] = 'mail';
245
246 /* Display: User Admin */
247 $handler = $view->new_display('page', 'User Admin', 'page_1');
248 $handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
249 $handler->display->display_options['path'] = 'admin/dashboard/users';
250 $handler->display->display_options['menu']['type'] = 'tab';
251 $handler->display->display_options['menu']['title'] = 'User Accounts';
252 $handler->display->display_options['menu']['weight'] = '-14';