1. $view = new view();
  2. $view->name = 'poke_user';
  3. $view->description = '';
  4. $view->tag = 'default';
  5. $view->base_table = 'users';
  6. $view->human_name = 'poke user';
  7. $view->core = 7;
  8. $view->api_version = '3.0';
  9. $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
  10. /* Display: Master */
  11. $handler = $view->new_display('default', 'Master', 'default');
  12. $handler->display->display_options['use_more_always'] = FALSE;
  13. $handler->display->display_options['access']['type'] = 'perm';
  14. $handler->display->display_options['access']['perm'] = 'access user profiles';
  15. $handler->display->display_options['cache']['type'] = 'none';
  16. $handler->display->display_options['query']['type'] = 'views_query';
  17. $handler->display->display_options['exposed_form']['type'] = 'basic';
  18. $handler->display->display_options['pager']['type'] = 'full';
  19. $handler->display->display_options['style_plugin'] = 'default';
  20. $handler->display->display_options['row_plugin'] = 'fields';
  21. /* Relationship: Flags: poke */
  22. $handler->display->display_options['relationships']['flag_content_rel']['id'] = 'flag_content_rel';
  23. $handler->display->display_options['relationships']['flag_content_rel']['table'] = 'users';
  24. $handler->display->display_options['relationships']['flag_content_rel']['field'] = 'flag_content_rel';
  25. $handler->display->display_options['relationships']['flag_content_rel']['required'] = 0;
  26. $handler->display->display_options['relationships']['flag_content_rel']['flag'] = 'poke';
  27. $handler->display->display_options['relationships']['flag_content_rel']['user_scope'] = 'any';
  28. /* Relationship: Flags: User */
  29. $handler->display->display_options['relationships']['uid']['id'] = 'uid';
  30. $handler->display->display_options['relationships']['uid']['table'] = 'flag_content';
  31. $handler->display->display_options['relationships']['uid']['field'] = 'uid';
  32. $handler->display->display_options['relationships']['uid']['relationship'] = 'flag_content_rel';
  33. $handler->display->display_options['relationships']['uid']['required'] = TRUE;
  34. /* Relationship: Flags: poke */
  35. $handler->display->display_options['relationships']['flag_content_rel_1']['id'] = 'flag_content_rel_1';
  36. $handler->display->display_options['relationships']['flag_content_rel_1']['table'] = 'users';
  37. $handler->display->display_options['relationships']['flag_content_rel_1']['field'] = 'flag_content_rel';
  38. $handler->display->display_options['relationships']['flag_content_rel_1']['relationship'] = 'uid';
  39. $handler->display->display_options['relationships']['flag_content_rel_1']['label'] = 'poke back';
  40. $handler->display->display_options['relationships']['flag_content_rel_1']['required'] = 0;
  41. $handler->display->display_options['relationships']['flag_content_rel_1']['flag'] = 'poke';
  42. /* Field: User: Name */
  43. $handler->display->display_options['fields']['name']['id'] = 'name';
  44. $handler->display->display_options['fields']['name']['table'] = 'users';
  45. $handler->display->display_options['fields']['name']['field'] = 'name';
  46. $handler->display->display_options['fields']['name']['relationship'] = 'uid';
  47. $handler->display->display_options['fields']['name']['label'] = '';
  48. $handler->display->display_options['fields']['name']['element_label_colon'] = FALSE;
  49. /* Field: Flags: Flag link */
  50. $handler->display->display_options['fields']['ops']['id'] = 'ops';
  51. $handler->display->display_options['fields']['ops']['table'] = 'flag_content';
  52. $handler->display->display_options['fields']['ops']['field'] = 'ops';
  53. $handler->display->display_options['fields']['ops']['relationship'] = 'flag_content_rel_1';
  54. /* Sort criterion: User: Created date */
  55. $handler->display->display_options['sorts']['created']['id'] = 'created';
  56. $handler->display->display_options['sorts']['created']['table'] = 'users';
  57. $handler->display->display_options['sorts']['created']['field'] = 'created';
  58. $handler->display->display_options['sorts']['created']['order'] = 'DESC';
  59. /* Contextual filter: Flags: Content ID */
  60. $handler->display->display_options['arguments']['content_id']['id'] = 'content_id';
  61. $handler->display->display_options['arguments']['content_id']['table'] = 'flag_content';
  62. $handler->display->display_options['arguments']['content_id']['field'] = 'content_id';
  63. $handler->display->display_options['arguments']['content_id']['relationship'] = 'flag_content_rel';
  64. $handler->display->display_options['arguments']['content_id']['default_action'] = 'default';
  65. $handler->display->display_options['arguments']['content_id']['default_argument_type'] = 'current_user';
  66. $handler->display->display_options['arguments']['content_id']['summary']['number_of_records'] = '0';
  67. $handler->display->display_options['arguments']['content_id']['summary']['format'] = 'default_summary';
  68. $handler->display->display_options['arguments']['content_id']['summary_options']['items_per_page'] = '25';
  69. /* Filter criterion: User: Active */
  70. $handler->display->display_options['filters']['status']['id'] = 'status';
  71. $handler->display->display_options['filters']['status']['table'] = 'users';
  72. $handler->display->display_options['filters']['status']['field'] = 'status';
  73. $handler->display->display_options['filters']['status']['value'] = '1';
  74. $handler->display->display_options['filters']['status']['group'] = 1;
  75. $handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
Comments powered by Disqus