Advertisement
Guest User

Untitled

a guest
Jun 13th, 2013
352
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.92 KB | None | 0 0
  1. $view = new view();
  2. $view->name = 'daughter_category';
  3. $view->description = '';
  4. $view->tag = 'default';
  5. $view->base_table = 'taxonomy_term_data';
  6. $view->human_name = 'Дочерние категории';
  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['use_more_always'] = FALSE;
  14. $handler->display->display_options['access']['type'] = 'perm';
  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'] = 'grid';
  20. $handler->display->display_options['row_plugin'] = 'fields';
  21. /* Relationship: Taxonomy term: Parent term */
  22. $handler->display->display_options['relationships']['parent']['id'] = 'parent';
  23. $handler->display->display_options['relationships']['parent']['table'] = 'taxonomy_term_hierarchy';
  24. $handler->display->display_options['relationships']['parent']['field'] = 'parent';
  25. $handler->display->display_options['relationships']['parent']['required'] = TRUE;
  26. /* Field: Taxonomy term: Name */
  27. $handler->display->display_options['fields']['name']['id'] = 'name';
  28. $handler->display->display_options['fields']['name']['table'] = 'taxonomy_term_data';
  29. $handler->display->display_options['fields']['name']['field'] = 'name';
  30. $handler->display->display_options['fields']['name']['label'] = '';
  31. $handler->display->display_options['fields']['name']['alter']['word_boundary'] = FALSE;
  32. $handler->display->display_options['fields']['name']['alter']['ellipsis'] = FALSE;
  33. $handler->display->display_options['fields']['name']['link_to_taxonomy'] = TRUE;
  34. /* Contextual filter: Taxonomy term: Term ID */
  35. $handler->display->display_options['arguments']['tid']['id'] = 'tid';
  36. $handler->display->display_options['arguments']['tid']['table'] = 'taxonomy_term_data';
  37. $handler->display->display_options['arguments']['tid']['field'] = 'tid';
  38. $handler->display->display_options['arguments']['tid']['relationship'] = 'parent';
  39. $handler->display->display_options['arguments']['tid']['default_action'] = 'default';
  40. $handler->display->display_options['arguments']['tid']['default_argument_type'] = 'taxonomy_tid';
  41. $handler->display->display_options['arguments']['tid']['summary']['number_of_records'] = '0';
  42. $handler->display->display_options['arguments']['tid']['summary']['format'] = 'default_summary';
  43. $handler->display->display_options['arguments']['tid']['summary_options']['items_per_page'] = '25';
  44. /* Filter criterion: Taxonomy vocabulary: Machine name */
  45. $handler->display->display_options['filters']['machine_name']['id'] = 'machine_name';
  46. $handler->display->display_options['filters']['machine_name']['table'] = 'taxonomy_vocabulary';
  47. $handler->display->display_options['filters']['machine_name']['field'] = 'machine_name';
  48. $handler->display->display_options['filters']['machine_name']['value'] = array(
  49. 'category_catalog' => 'category_catalog',
  50. );
  51. /* Filter criterion: Taxonomy term: Parent term */
  52. $handler->display->display_options['filters']['parent']['id'] = 'parent';
  53. $handler->display->display_options['filters']['parent']['table'] = 'taxonomy_term_hierarchy';
  54. $handler->display->display_options['filters']['parent']['field'] = 'parent';
  55.  
  56. /* Display: Content pane */
  57. $handler = $view->new_display('panel_pane', 'Content pane', 'panel_pane_1');
  58. $translatables['daughter_category'] = array(
  59. t('Master'),
  60. t('more'),
  61. t('Apply'),
  62. t('Reset'),
  63. t('Sort by'),
  64. t('Asc'),
  65. t('Desc'),
  66. t('Items per page'),
  67. t('- All -'),
  68. t('Offset'),
  69. t('« first'),
  70. t('‹ previous'),
  71. t('next ›'),
  72. t('last »'),
  73. t('Parent'),
  74. t('All'),
  75. t('Content pane'),
  76. t('View panes'),
  77. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement