4 $view->name = 'og_members_block';
5 $view->description = 'Member listing block';
8 $view->base_table = 'users';
9 $view->is_cacheable = FALSE;
10 $view->api_version = 2;
11 $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
12 $handler = $view->new_display('default', 'Defaults', 'default');
13 $handler->override_option('relationships', array(
20 'relationship' => 'none',
23 $handler->override_option('fields', array(
29 'relationship' => 'none',
37 'relationship' => 'none',
42 'field' => 'is_admin',
44 'relationship' => 'none',
47 $handler->override_option('sorts', array(
53 'granularity' => 'second',
54 'relationship' => 'none',
57 $handler->override_option('arguments', array(
62 'default_action' => 'default',
63 'style_plugin' => 'default_summary',
64 'style_options' => array(
67 'items_per_page' => 25,
70 'wildcard_substitution' => 'All',
72 'default_argument_type' => 'php',
73 'default_argument' => '',
74 'validate_type' => 'og_group_types',
75 'validate_fail' => 'not found',
78 'relationship' => 'none',
79 'default_argument_fixed' => '39',
80 'default_argument_php' => 'if ($node = og_get_group_context()) {
86 'validate_argument_node_type' => array(
95 'validate_argument_php' => '',
97 'reduce_duplicates' => 0,
98 'validate_argument_vocabulary' => array(
104 'validate_argument_type' => 'tid',
105 'default_argument_user' => 0,
106 'validate_argument_node_access' => 0,
107 'validate_argument_nid_type' => 'nid',
109 'validate_argument_is_member' => 1,
112 $handler->override_option('filters', array(
125 'relationship' => 'none',
126 'expose_button' => array(
127 'button' => 'Expose',
130 'is_active' => array(
133 'field' => 'is_active',
142 'relationship' => 'none',
143 'expose_button' => array(
144 'button' => 'Expose',
150 'field' => 'is_admin',
162 'relationship' => 'none',
163 'expose_button' => array(
164 'button' => 'Expose',
168 $handler->override_option('access', array(
173 $handler->override_option('title', 'Recent members');
174 $handler->override_option('empty_format', '1');
175 $handler->override_option('use_pager', '1');
176 $handler->override_option('style_plugin', 'list');
177 $handler->override_option('style_options', array(
180 $handler->override_option('row_options', array(
183 'is_admin' => 'is_admin',
185 'separator' => ' ',
187 $handler = $view->new_display('block', 'Block Admins', 'block');
188 $handler->override_option('filters', array(
201 'relationship' => 'none',
202 'expose_button' => array(
203 'button' => 'Expose',
206 'is_active' => array(
209 'field' => 'is_active',
218 'relationship' => 'none',
219 'expose_button' => array(
220 'button' => 'Expose',
236 'field' => 'is_admin',
237 'relationship' => 'none',
238 'expose_button' => array(
239 'button' => 'Expose',
242 'button' => 'Use default',
246 $handler->override_option('title', 'Group admins');
247 $handler->override_option('block_description', 'Group admins');
248 $handler->override_option('block_caching', -1);
249 $handler = $view->new_display('block', 'Block Admins, Members', 'block_1');
250 $handler->override_option('block_description', 'Group members');
251 $handler->override_option('block_caching', -1);