daily pastebin goal
64%
SHARE
TWEET

Untitled

a guest Nov 4th, 2013 115 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $view = new view();
  2. $view->name = 'node_tags';
  3. $view->description = '';
  4. $view->tag = 'default';
  5. $view->base_table = 'taxonomy_term_data';
  6. $view->human_name = 'Node tags';
  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.  
  11. /* Display: Master */
  12. $handler = $view->new_display('default', 'Master', 'default');
  13. $handler->display->display_options['title'] = 'tagged';
  14. $handler->display->display_options['use_more_always'] = FALSE;
  15. $handler->display->display_options['group_by'] = TRUE;
  16. $handler->display->display_options['access']['type'] = 'perm';
  17. $handler->display->display_options['cache']['type'] = 'none';
  18. $handler->display->display_options['query']['type'] = 'views_query';
  19. $handler->display->display_options['exposed_form']['type'] = 'basic';
  20. $handler->display->display_options['pager']['type'] = 'none';
  21. $handler->display->display_options['style_plugin'] = 'default';
  22. $handler->display->display_options['style_options']['default_row_class'] = FALSE;
  23. $handler->display->display_options['style_options']['row_class_special'] = FALSE;
  24. $handler->display->display_options['row_plugin'] = 'fields';
  25. $handler->display->display_options['row_options']['inline'] = array(
  26.   'name' => 'name',
  27.   'nid' => 'nid',
  28. );
  29. /* Relationship: Taxonomy term: Content using Tags */
  30. $handler->display->display_options['relationships']['reverse_field_tags_node']['id'] = 'reverse_field_tags_node';
  31. $handler->display->display_options['relationships']['reverse_field_tags_node']['table'] = 'taxonomy_term_data';
  32. $handler->display->display_options['relationships']['reverse_field_tags_node']['field'] = 'reverse_field_tags_node';
  33. $handler->display->display_options['relationships']['reverse_field_tags_node']['label'] = 'Tags all';
  34. $handler->display->display_options['relationships']['reverse_field_tags_node']['required'] = TRUE;
  35. /* Relationship: Taxonomy term: Content using Tags */
  36. $handler->display->display_options['relationships']['reverse_field_tags_node_1']['id'] = 'reverse_field_tags_node_1';
  37. $handler->display->display_options['relationships']['reverse_field_tags_node_1']['table'] = 'taxonomy_term_data';
  38. $handler->display->display_options['relationships']['reverse_field_tags_node_1']['field'] = 'reverse_field_tags_node';
  39. $handler->display->display_options['relationships']['reverse_field_tags_node_1']['label'] = 'Tags current';
  40. $handler->display->display_options['relationships']['reverse_field_tags_node_1']['required'] = TRUE;
  41. /* Field: Taxonomy term: Name */
  42. $handler->display->display_options['fields']['name']['id'] = 'name';
  43. $handler->display->display_options['fields']['name']['table'] = 'taxonomy_term_data';
  44. $handler->display->display_options['fields']['name']['field'] = 'name';
  45. $handler->display->display_options['fields']['name']['label'] = '';
  46. $handler->display->display_options['fields']['name']['alter']['word_boundary'] = FALSE;
  47. $handler->display->display_options['fields']['name']['alter']['ellipsis'] = FALSE;
  48. $handler->display->display_options['fields']['name']['element_type'] = '0';
  49. $handler->display->display_options['fields']['name']['element_label_colon'] = FALSE;
  50. $handler->display->display_options['fields']['name']['element_wrapper_type'] = '0';
  51. $handler->display->display_options['fields']['name']['element_default_classes'] = FALSE;
  52. $handler->display->display_options['fields']['name']['link_to_taxonomy'] = TRUE;
  53. /* Field: COUNT(Content: Nid) */
  54. $handler->display->display_options['fields']['nid']['id'] = 'nid';
  55. $handler->display->display_options['fields']['nid']['table'] = 'node';
  56. $handler->display->display_options['fields']['nid']['field'] = 'nid';
  57. $handler->display->display_options['fields']['nid']['relationship'] = 'reverse_field_tags_node';
  58. $handler->display->display_options['fields']['nid']['group_type'] = 'count';
  59. $handler->display->display_options['fields']['nid']['label'] = '';
  60. $handler->display->display_options['fields']['nid']['element_label_colon'] = FALSE;
  61. $handler->display->display_options['fields']['nid']['separator'] = '';
  62. $handler->display->display_options['fields']['nid']['prefix'] = 'x ';
  63. /* Contextual filter: Content: Nid */
  64. $handler->display->display_options['arguments']['nid']['id'] = 'nid';
  65. $handler->display->display_options['arguments']['nid']['table'] = 'node';
  66. $handler->display->display_options['arguments']['nid']['field'] = 'nid';
  67. $handler->display->display_options['arguments']['nid']['relationship'] = 'reverse_field_tags_node_1';
  68. $handler->display->display_options['arguments']['nid']['default_action'] = 'default';
  69. $handler->display->display_options['arguments']['nid']['default_argument_type'] = 'node';
  70. $handler->display->display_options['arguments']['nid']['summary']['number_of_records'] = '0';
  71. $handler->display->display_options['arguments']['nid']['summary']['format'] = 'default_summary';
  72. $handler->display->display_options['arguments']['nid']['summary_options']['items_per_page'] = '25';
  73.  
  74. /* Display: Block */
  75. $handler = $view->new_display('block', 'Block', 'block');
RAW Paste Data
Top