pastebin

Paste Search Dynamic
Recent pastes
user admin people
  1. <?php
  2.  
  3. /**
  4.  * @file
  5.  * Default view for user administration.
  6.  */
  7.  
  8. $view = new view();
  9. $view->name = 'admin_views_user';
  10. $view->description = 'List, add, and edit users.';
  11. $view->tag = 'admin';
  12. $view->base_table = 'users';
  13. $view->human_name = 'Administration: Users';
  14. $view->core = 0;
  15. $view->api_version = '3.0';
  16. $view->disabled = false; /* Edit this to true to make a default view disabled initially */
  17.  
  18. /* Display: Defaults */
  19. $handler = $view->new_display('default', 'Defaults', 'default');
  20. $handler->display->display_options['title'] = 'Users';
  21. $handler->display->display_options['css_class'] = 'admin-views-view';
  22. $handler->display->display_options['use_ajax'] = true;
  23. $handler->display->display_options['use_more_always'] = false;
  24. $handler->display->display_options['access']['type'] = 'perm';
  25. $handler->display->display_options['access']['perm'] = 'access administration pages';
  26. $handler->display->display_options['cache']['type'] = 'none';
  27. $handler->display->display_options['query']['type'] = 'views_query';
  28. $handler->display->display_options['query']['options']['query_comment'] = false;
  29. $handler->display->display_options['exposed_form']['type'] = 'basic';
  30. $handler->display->display_options['exposed_form']['options']['reset_button'] = true;
  31. $handler->display->display_options['pager']['type'] = 'full';
  32. $handler->display->display_options['pager']['options']['items_per_page'] = 50;
  33. $handler->display->display_options['style_plugin'] = 'table';
  34. $handler->display->display_options['style_options']['columns'] = array(
  35.   'views_bulk_operations' => 'views_bulk_operations',
  36.   'name' => 'name',
  37.   'mail' => 'name',
  38.   'status' => 'status',
  39.   'rid' => 'rid',
  40.   'created' => 'created',
  41.   'access' => 'access',
  42.   'edit_node' => 'edit_node',
  43.   'cancel_node' => 'edit_node',
  44. );
  45. $handler->display->display_options['style_options']['default'] = 'access';
  46. $handler->display->display_options['style_options']['info'] = array(
  47.   'views_bulk_operations' => array(
  48.     'align' => '',
  49.     'separator' => '',
  50.     'empty_column' => 0,
  51.   ),
  52.   'name' => array(
  53.     'sortable' => 1,
  54.     'default_sort_order' => 'asc',
  55.     'align' => '',
  56.     'separator' => '<br />',
  57.     'empty_column' => 0,
  58.   ),
  59.   'mail' => array(
  60.     'sortable' => 0,
  61.     'default_sort_order' => 'asc',
  62.     'align' => '',
  63.     'separator' => '',
  64.     'empty_column' => 0,
  65.   ),
  66.   'status' => array(
  67.     'sortable' => 1,
  68.     'default_sort_order' => 'desc',
  69.     'align' => '',
  70.     'separator' => '',
  71.     'empty_column' => 0,
  72.   ),
  73.   'rid' => array(
  74.     'align' => '',
  75.     'separator' => '',
  76.     'empty_column' => 0,
  77.   ),
  78.   'created' => array(
  79.     'sortable' => 1,
  80.     'default_sort_order' => 'desc',
  81.     'align' => '',
  82.     'separator' => '',
  83.     'empty_column' => 0,
  84.   ),
  85.   'access' => array(
  86.     'sortable' => 1,
  87.     'default_sort_order' => 'desc',
  88.     'align' => '',
  89.     'separator' => '',
  90.     'empty_column' => 0,
  91.   ),
  92.   'edit_node' => array(
  93.     'align' => '',
  94.     'separator' => '&emsp;',
  95.     'empty_column' => 0,
  96.   ),
  97.   'cancel_node' => array(
  98.     'align' => '',
  99.     'separator' => '',
  100.     'empty_column' => 0,
  101.   ),
  102. );
  103. $handler->display->display_options['style_options']['sticky'] = true;
  104. $handler->display->display_options['style_options']['empty_table'] = true;
  105. /* No results behavior: Global: Unfiltered text */
  106. $handler->display->display_options['empty']['area_text_custom']['id'] = 'area_text_custom';
  107. $handler->display->display_options['empty']['area_text_custom']['table'] = 'views';
  108. $handler->display->display_options['empty']['area_text_custom']['field'] = 'area_text_custom';
  109. $handler->display->display_options['empty']['area_text_custom']['empty'] = true;
  110. $handler->display->display_options['empty']['area_text_custom']['content'] = 'No users available.';
  111. /* Field: Bulk operations: User */
  112. $handler->display->display_options['fields']['views_bulk_operations']['id'] = 'views_bulk_operations';
  113. $handler->display->display_options['fields']['views_bulk_operations']['table'] = 'users';
  114. $handler->display->display_options['fields']['views_bulk_operations']['field'] = 'views_bulk_operations';
  115. $handler->display->display_options['fields']['views_bulk_operations']['label'] = '';
  116. $handler->display->display_options['fields']['views_bulk_operations']['element_label_colon'] = false;
  117. $handler->display->display_options['fields']['views_bulk_operations']['hide_alter_empty'] = false;
  118. $handler->display->display_options['fields']['views_bulk_operations']['vbo_settings']['display_type'] = '0';
  119. $handler->display->display_options['fields']['views_bulk_operations']['vbo_settings']['enable_select_all_pages'] = 1;
  120. $handler->display->display_options['fields']['views_bulk_operations']['vbo_settings']['force_single'] = 0;
  121. $handler->display->display_options['fields']['views_bulk_operations']['vbo_settings']['entity_load_capacity'] = '10';
  122. $handler->display->display_options['fields']['views_bulk_operations']['vbo_operations'] = array(
  123.   'action::system_block_ip_action' => array(
  124.     'selected' => 0,
  125.     'skip_confirmation' => 1,
  126.     'override_label' => 1,
  127.     'label' => 'Ban IP address of the current user',
  128.     'postpone_processing' => 0,
  129.   ),
  130.   'action::user_block_user_action' => array(
  131.     'selected' => 0,
  132.     'skip_confirmation' => 1,
  133.     'override_label' => 0,
  134.     'label' => '',
  135.     'postpone_processing' => 0,
  136.   ),
  137.   'action::views_bulk_operations_user_cancel_action' => array(
  138.     'selected' => 1,
  139.     'skip_confirmation' => 0,
  140.     'override_label' => 0,
  141.     'label' => '',
  142.     'postpone_processing' => 0,
  143.   ),
  144.   'action::views_bulk_operations_delete_item' => array(
  145.     'selected' => 0,
  146.     'skip_confirmation' => 0,
  147.     'override_label' => 1,
  148.     'label' => 'Delete',
  149.     'postpone_processing' => 0,
  150.   ),
  151.   'action::views_bulk_operations_modify_action' => array(
  152.     'selected' => 1,
  153.     'skip_confirmation' => 1,
  154.     'override_label' => 1,
  155.     'label' => 'Change value',
  156.     'settings' => array(
  157.       'show_all_tokens' => 1,
  158.       'display_values' => array(
  159.         '_all_' => '_all_',
  160.       ),
  161.     ),
  162.     'postpone_processing' => 0,
  163.   ),
  164.   'action::system_message_action' => array(
  165.     'selected' => 0,
  166.     'skip_confirmation' => 0,
  167.     'override_label' => 0,
  168.     'label' => '',
  169.     'postpone_processing' => 0,
  170.   ),
  171.   'action::views_bulk_operations_script_action' => array(
  172.     'selected' => 0,
  173.     'skip_confirmation' => 0,
  174.     'override_label' => 0,
  175.     'label' => '',
  176.     'postpone_processing' => 0,
  177.   ),
  178.   'action::views_bulk_operations_user_roles_action' => array(
  179.     'selected' => 1,
  180.     'skip_confirmation' => 0,
  181.     'override_label' => 1,
  182.     'label' => 'Change user roles',
  183.     'postpone_processing' => 0,
  184.   ),
  185.   'action::views_bulk_operations_argument_selector_action' => array(
  186.     'selected' => 0,
  187.     'skip_confirmation' => 0,
  188.     'override_label' => 0,
  189.     'label' => '',
  190.     'settings' => array(
  191.       'url' => '',
  192.     ),
  193.   ),
  194.   'action::system_goto_action' => array(
  195.     'selected' => 0,
  196.     'skip_confirmation' => 0,
  197.     'override_label' => 0,
  198.     'label' => '',
  199.     'postpone_processing' => 0,
  200.   ),
  201.   'action::system_send_email_action' => array(
  202.     'selected' => 1,
  203.     'skip_confirmation' => 0,
  204.     'override_label' => 1,
  205.     'label' => 'Send e-mail',
  206.     'postpone_processing' => 0,
  207.   ),
  208. );
  209. /* Field: User: Name */
  210. $handler->display->display_options['fields']['name']['id'] = 'name';
  211. $handler->display->display_options['fields']['name']['table'] = 'users';
  212. $handler->display->display_options['fields']['name']['field'] = 'name';
  213. /* Field: User: E-mail */
  214. $handler->display->display_options['fields']['mail']['id'] = 'mail';
  215. $handler->display->display_options['fields']['mail']['table'] = 'users';
  216. $handler->display->display_options['fields']['mail']['field'] = 'mail';
  217. $handler->display->display_options['fields']['mail']['label'] = '';
  218. $handler->display->display_options['fields']['mail']['element_label_colon'] = false;
  219. $handler->display->display_options['fields']['mail']['link_to_user'] = '0';
  220. /* Field: User: Active */
  221. $handler->display->display_options['fields']['status']['id'] = 'status';
  222. $handler->display->display_options['fields']['status']['table'] = 'users';
  223. $handler->display->display_options['fields']['status']['field'] = 'status';
  224. $handler->display->display_options['fields']['status']['not'] = 0;
  225. /* Field: User: Roles */
  226. $handler->display->display_options['fields']['rid']['id'] = 'rid';
  227. $handler->display->display_options['fields']['rid']['table'] = 'users_roles';
  228. $handler->display->display_options['fields']['rid']['field'] = 'rid';
  229. $handler->display->display_options['fields']['rid']['type'] = 'ul';
  230. /* Field: User: Created date */
  231. $handler->display->display_options['fields']['created']['id'] = 'created';
  232. $handler->display->display_options['fields']['created']['table'] = 'users';
  233. $handler->display->display_options['fields']['created']['field'] = 'created';
  234. $handler->display->display_options['fields']['created']['label'] = 'Member for';
  235. $handler->display->display_options['fields']['created']['date_format'] = 'raw time ago';
  236. /* Field: User: Last access */
  237. $handler->display->display_options['fields']['access']['id'] = 'access';
  238. $handler->display->display_options['fields']['access']['table'] = 'users';
  239. $handler->display->display_options['fields']['access']['field'] = 'access';
  240. $handler->display->display_options['fields']['access']['date_format'] = 'time ago';
  241. /* Field: User: Edit link */
  242. $handler->display->display_options['fields']['edit_node']['id'] = 'edit_node';
  243. $handler->display->display_options['fields']['edit_node']['table'] = 'users';
  244. $handler->display->display_options['fields']['edit_node']['field'] = 'edit_node';
  245. $handler->display->display_options['fields']['edit_node']['label'] = 'Operations';
  246. /* Field: User: Cancel link */
  247. $handler->display->display_options['fields']['cancel_node']['id'] = 'cancel_node';
  248. $handler->display->display_options['fields']['cancel_node']['table'] = 'users';
  249. $handler->display->display_options['fields']['cancel_node']['field'] = 'cancel_node';
  250. $handler->display->display_options['fields']['cancel_node']['label'] = '';
  251. $handler->display->display_options['fields']['cancel_node']['element_label_colon'] = false;
  252. $handler->display->display_options['fields']['cancel_node']['hide_alter_empty'] = false;
  253. /* Sort criterion: User: Created date */
  254. $handler->display->display_options['sorts']['created']['id'] = 'created';
  255. $handler->display->display_options['sorts']['created']['table'] = 'users';
  256. $handler->display->display_options['sorts']['created']['field'] = 'created';
  257. $handler->display->display_options['sorts']['created']['order'] = 'DESC';
  258. /* Filter criterion: User: Name */
  259. $handler->display->display_options['filters']['uid']['id'] = 'uid';
  260. $handler->display->display_options['filters']['uid']['table'] = 'users';
  261. $handler->display->display_options['filters']['uid']['field'] = 'uid';
  262. $handler->display->display_options['filters']['uid']['operator'] = 'not in';
  263. $handler->display->display_options['filters']['uid']['value'] = array(
  264.   0 => 0,
  265. );
  266. $handler->display->display_options['filters']['uid']['group'] = 1;
  267. /* Filter criterion: User: Name (raw) */
  268. $handler->display->display_options['filters']['name']['id'] = 'name';
  269. $handler->display->display_options['filters']['name']['table'] = 'users';
  270. $handler->display->display_options['filters']['name']['field'] = 'name';
  271. $handler->display->display_options['filters']['name']['operator'] = 'contains';
  272. $handler->display->display_options['filters']['name']['group'] = 1;
  273. $handler->display->display_options['filters']['name']['exposed'] = true;
  274. $handler->display->display_options['filters']['name']['expose']['operator_id'] = 'name_op';
  275. $handler->display->display_options['filters']['name']['expose']['label'] = 'Username';
  276. $handler->display->display_options['filters']['name']['expose']['operator'] = 'name_op';
  277. $handler->display->display_options['filters']['name']['expose']['identifier'] = 'name';
  278. $handler->display->display_options['filters']['name']['expose']['remember'] = true;
  279. /* Filter criterion: User: E-mail */
  280. $handler->display->display_options['filters']['mail']['id'] = 'mail';
  281. $handler->display->display_options['filters']['mail']['table'] = 'users';
  282. $handler->display->display_options['filters']['mail']['field'] = 'mail';
  283. $handler->display->display_options['filters']['mail']['operator'] = 'contains';
  284. $handler->display->display_options['filters']['mail']['group'] = 1;
  285. $handler->display->display_options['filters']['mail']['exposed'] = true;
  286. $handler->display->display_options['filters']['mail']['expose']['operator_id'] = 'mail_op';
  287. $handler->display->display_options['filters']['mail']['expose']['label'] = 'E-mail';
  288. $handler->display->display_options['filters']['mail']['expose']['operator'] = 'mail_op';
  289. $handler->display->display_options['filters']['mail']['expose']['identifier'] = 'mail';
  290. $handler->display->display_options['filters']['mail']['expose']['remember'] = true;
  291. /* Filter criterion: User: Active */
  292. $handler->display->display_options['filters']['status']['id'] = 'status';
  293. $handler->display->display_options['filters']['status']['table'] = 'users';
  294. $handler->display->display_options['filters']['status']['field'] = 'status';
  295. $handler->display->display_options['filters']['status']['value'] = 'All';
  296. $handler->display->display_options['filters']['status']['group'] = 1;
  297. $handler->display->display_options['filters']['status']['exposed'] = true;
  298. $handler->display->display_options['filters']['status']['expose']['operator_id'] = '';
  299. $handler->display->display_options['filters']['status']['expose']['label'] = 'Active';
  300. $handler->display->display_options['filters']['status']['expose']['operator'] = 'status_op';
  301. $handler->display->display_options['filters']['status']['expose']['identifier'] = 'status';
  302. $handler->display->display_options['filters']['status']['expose']['remember'] = true;
  303. /* Filter criterion: User: Roles */
  304. $handler->display->display_options['filters']['rid']['id'] = 'rid';
  305. $handler->display->display_options['filters']['rid']['table'] = 'users_roles';
  306. $handler->display->display_options['filters']['rid']['field'] = 'rid';
  307. $handler->display->display_options['filters']['rid']['group'] = 1;
  308. $handler->display->display_options['filters']['rid']['exposed'] = true;
  309. $handler->display->display_options['filters']['rid']['expose']['operator_id'] = 'rid_op';
  310. $handler->display->display_options['filters']['rid']['expose']['label'] = 'Role';
  311. $handler->display->display_options['filters']['rid']['expose']['operator'] = 'rid_op';
  312. $handler->display->display_options['filters']['rid']['expose']['identifier'] = 'rid';
  313. $handler->display->display_options['filters']['rid']['expose']['remember'] = true;
  314.  
  315. /* Display: System */
  316. $handler = $view->new_display('system', 'System', 'system_1');
  317. $handler->display->display_options['defaults']['hide_admin_links'] = false;
  318. $handler->display->display_options['hide_admin_links'] = true;
  319. $handler->display->display_options['defaults']['access'] = false;
  320. $handler->display->display_options['path'] = 'admin/people';
  321. $translatables['admin_views_user'] = array(
  322.   t('Defaults'),
  323.   t('Users'),
  324.   t('more'),
  325.   t('Apply'),
  326.   t('Reset'),
  327.   t('Sort by'),
  328.   t('Asc'),
  329.   t('Desc'),
  330.   t('Items per page'),
  331.   t('- All -'),
  332.   t('Offset'),
  333.   t('« first'),
  334.   t('‹ previous'),
  335.   t('next ›'),
  336.   t('last »'),
  337.   t('No users available.'),
  338.   t('- Choose an operation -'),
  339.   t('Ban IP address of the current user'),
  340.   t('Delete'),
  341.   t('Change value'),
  342.   t('Change user roles'),
  343.   t('Send e-mail'),
  344.   t('Name'),
  345.   t('Active'),
  346.   t('Roles'),
  347.   t('Member for'),
  348.   t('Last access'),
  349.   t('Operations'),
  350.   t('Username'),
  351.   t('E-mail'),
  352.   t('Role'),
  353.   t('System'),
  354. );
Parsed in 0.374 seconds