fgcf_thematique_deuxieme_niveau.php 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. <?php
  2. // $Id$
  3. /**
  4. * @file
  5. * Liste des sous-thèmes d'un thème passé en argument.
  6. */
  7. $view = new view;
  8. $view->name = 'fgcf_thematique_deuxieme_niveau';
  9. $view->description = 'Liste des thèmes de 2e niveau pour un thème donné';
  10. $view->tag = 'FGCF';
  11. $view->view_php = '';
  12. $view->base_table = 'term_data';
  13. $view->is_cacheable = FALSE;
  14. $view->api_version = 2;
  15. $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
  16. $handler = $view->new_display('default', 'Defaults', 'default');
  17. $handler->override_option('fields', array(
  18. 'tid' => array(
  19. 'label' => 'Term ID',
  20. 'alter' => array(
  21. 'alter_text' => 0,
  22. 'text' => '',
  23. 'make_link' => 0,
  24. 'path' => '',
  25. 'link_class' => '',
  26. 'alt' => '',
  27. 'prefix' => '',
  28. 'suffix' => '',
  29. 'target' => '',
  30. 'help' => '',
  31. 'trim' => 0,
  32. 'max_length' => '',
  33. 'word_boundary' => 1,
  34. 'ellipsis' => 1,
  35. 'html' => 0,
  36. 'strip_tags' => 0,
  37. ),
  38. 'empty' => '',
  39. 'hide_empty' => 0,
  40. 'empty_zero' => 0,
  41. 'set_precision' => FALSE,
  42. 'precision' => 0,
  43. 'decimal' => '.',
  44. 'separator' => ',',
  45. 'prefix' => '',
  46. 'suffix' => '',
  47. 'exclude' => 1,
  48. 'id' => 'tid',
  49. 'table' => 'term_data',
  50. 'field' => 'tid',
  51. 'relationship' => 'none',
  52. ),
  53. 'description' => array(
  54. 'label' => '',
  55. 'alter' => array(
  56. 'alter_text' => 0,
  57. 'text' => '',
  58. 'make_link' => 1,
  59. 'path' => 'fgcf/theme/[tid]',
  60. 'link_class' => '',
  61. 'alt' => '',
  62. 'prefix' => '',
  63. 'suffix' => '',
  64. 'target' => '',
  65. 'help' => '',
  66. 'trim' => 0,
  67. 'max_length' => '',
  68. 'word_boundary' => 1,
  69. 'ellipsis' => 1,
  70. 'html' => 0,
  71. 'strip_tags' => 1,
  72. ),
  73. 'empty' => '',
  74. 'hide_empty' => 0,
  75. 'empty_zero' => 0,
  76. 'exclude' => 0,
  77. 'id' => 'description',
  78. 'table' => 'term_data',
  79. 'field' => 'description',
  80. 'relationship' => 'none',
  81. ),
  82. ));
  83. $handler->override_option('sorts', array(
  84. 'weight' => array(
  85. 'order' => 'ASC',
  86. 'id' => 'weight',
  87. 'table' => 'term_data',
  88. 'field' => 'weight',
  89. 'relationship' => 'none',
  90. ),
  91. ));
  92. $handler->override_option('arguments', array(
  93. 'parent' => array(
  94. 'default_action' => 'empty',
  95. 'style_plugin' => 'default_summary',
  96. 'style_options' => array(),
  97. 'wildcard' => 'all',
  98. 'wildcard_substitution' => 'All',
  99. 'title' => '',
  100. 'breadcrumb' => '',
  101. 'default_argument_type' => 'fixed',
  102. 'default_argument' => '',
  103. 'validate_type' => 'none',
  104. 'validate_fail' => 'not found',
  105. 'break_phrase' => 0,
  106. 'not' => 0,
  107. 'id' => 'parent',
  108. 'table' => 'term_hierarchy',
  109. 'field' => 'parent',
  110. 'validate_user_argument_type' => 'uid',
  111. 'validate_user_roles' => array(
  112. '2' => 0,
  113. ),
  114. 'relationship' => 'none',
  115. 'default_options_div_prefix' => '',
  116. 'default_argument_fixed' => '',
  117. 'default_argument_user' => 0,
  118. 'default_argument_php' => '',
  119. 'validate_argument_node_type' => array(
  120. 'fgcf_fiche' => 0,
  121. 'fgcf_prestataire' => 0,
  122. 'fgcf_thematique' => 0,
  123. 'page' => 0,
  124. 'story' => 0,
  125. ),
  126. 'validate_argument_node_access' => 0,
  127. 'validate_argument_nid_type' => 'nid',
  128. 'validate_argument_vocabulary' => array(
  129. '2' => 0,
  130. '5' => 0,
  131. '4' => 0,
  132. '3' => 0,
  133. '1' => 0,
  134. ),
  135. 'validate_argument_type' => 'tid',
  136. 'validate_argument_transform' => 0,
  137. 'validate_user_restrict_roles' => 0,
  138. 'validate_argument_php' => '',
  139. ),
  140. ));
  141. $handler->override_option('access', array(
  142. 'type' => 'none',
  143. ));
  144. $handler->override_option('cache', array(
  145. 'type' => 'none',
  146. ));
  147. $handler->override_option('empty', 'Pas de résultat');
  148. $handler->override_option('empty_format', '1');
  149. $handler->override_option('items_per_page', 0);
  150. $handler->override_option('use_pager', 0);
  151. $handler->override_option('style_plugin', 'list');
  152. $handler->override_option('style_options', array(
  153. 'grouping' => '',
  154. 'type' => 'ul',
  155. ));