fgcf_thematiques_premier_niveau.php 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. <?php
  2. // $Id$
  3. /**
  4. * @file
  5. * Liste des thématiques de 1er niveau.
  6. */
  7. $view = new view;
  8. $view->name = 'fgcf_thematiques_premier_niveau';
  9. $view->description = 'Liste des thématiques de 1er niveau';
  10. $view->tag = '';
  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('relationships', array(
  18. 'nid' => array(
  19. 'label' => 'NAT Node',
  20. 'required' => 1,
  21. 'id' => 'nid',
  22. 'table' => 'nat',
  23. 'field' => 'nid',
  24. 'relationship' => 'none',
  25. ),
  26. ));
  27. $handler->override_option('fields', array(
  28. 'tid' => array(
  29. 'label' => 'Term ID',
  30. 'alter' => array(
  31. 'alter_text' => 0,
  32. 'text' => '',
  33. 'make_link' => 0,
  34. 'path' => '',
  35. 'link_class' => '',
  36. 'alt' => '',
  37. 'prefix' => '',
  38. 'suffix' => '',
  39. 'target' => '',
  40. 'help' => '',
  41. 'trim' => 0,
  42. 'max_length' => '',
  43. 'word_boundary' => 1,
  44. 'ellipsis' => 1,
  45. 'html' => 0,
  46. 'strip_tags' => 0,
  47. ),
  48. 'empty' => '',
  49. 'hide_empty' => 0,
  50. 'empty_zero' => 0,
  51. 'set_precision' => FALSE,
  52. 'precision' => 0,
  53. 'decimal' => '.',
  54. 'separator' => ',',
  55. 'prefix' => '',
  56. 'suffix' => '',
  57. 'exclude' => 1,
  58. 'id' => 'tid',
  59. 'table' => 'term_data',
  60. 'field' => 'tid',
  61. 'relationship' => 'none',
  62. ),
  63. 'description' => array(
  64. 'label' => '',
  65. 'alter' => array(
  66. 'alter_text' => 0,
  67. 'text' => '',
  68. 'make_link' => 1,
  69. 'path' => 'fgcf/thematique/[tid]',
  70. 'link_class' => '',
  71. 'alt' => '',
  72. 'prefix' => '',
  73. 'suffix' => '',
  74. 'target' => '',
  75. 'help' => '',
  76. 'trim' => 0,
  77. 'max_length' => '',
  78. 'word_boundary' => 1,
  79. 'ellipsis' => 1,
  80. 'html' => 0,
  81. 'strip_tags' => 1,
  82. ),
  83. 'empty' => '',
  84. 'hide_empty' => 0,
  85. 'empty_zero' => 0,
  86. 'exclude' => 0,
  87. 'id' => 'description',
  88. 'table' => 'term_data',
  89. 'field' => 'description',
  90. 'relationship' => 'none',
  91. ),
  92. ));
  93. $handler->override_option('sorts', array(
  94. 'weight' => array(
  95. 'order' => 'ASC',
  96. 'id' => 'weight',
  97. 'table' => 'term_data',
  98. 'field' => 'weight',
  99. 'relationship' => 'none',
  100. ),
  101. ));
  102. $handler->override_option('arguments', array(
  103. 'vid' => array(
  104. 'default_action' => 'empty',
  105. 'style_plugin' => 'default_summary',
  106. 'style_options' => array(),
  107. 'wildcard' => 'all',
  108. 'wildcard_substitution' => 'All',
  109. 'title' => '',
  110. 'breadcrumb' => '',
  111. 'default_argument_type' => 'fixed',
  112. 'default_argument' => '',
  113. 'validate_type' => 'none',
  114. 'validate_fail' => 'not found',
  115. 'id' => 'vid',
  116. 'table' => 'vocabulary',
  117. 'field' => 'vid',
  118. 'validate_user_argument_type' => 'uid',
  119. 'validate_user_roles' => array(
  120. '2' => 0,
  121. ),
  122. 'relationship' => 'none',
  123. 'default_options_div_prefix' => '',
  124. 'default_argument_fixed' => '',
  125. 'default_argument_user' => 0,
  126. 'default_argument_php' => '',
  127. 'validate_argument_node_type' => array(
  128. 'fgcf_fiche' => 0,
  129. 'fgcf_prestataire' => 0,
  130. 'fgcf_thematique' => 0,
  131. 'page' => 0,
  132. 'story' => 0,
  133. ),
  134. 'validate_argument_node_access' => 0,
  135. 'validate_argument_nid_type' => 'nid',
  136. 'validate_argument_vocabulary' => array(
  137. '2' => 0,
  138. '5' => 0,
  139. '4' => 0,
  140. '3' => 0,
  141. '1' => 0,
  142. ),
  143. 'validate_argument_type' => 'tid',
  144. 'validate_argument_transform' => 0,
  145. 'validate_user_restrict_roles' => 0,
  146. 'validate_argument_php' => '',
  147. ),
  148. ));
  149. $handler->override_option('filters', array(
  150. 'vid' => array(
  151. 'operator' => 'in',
  152. 'value' => array(
  153. '1' => 1,
  154. ),
  155. 'group' => '0',
  156. 'exposed' => FALSE,
  157. 'expose' => array(
  158. 'operator' => FALSE,
  159. 'label' => '',
  160. ),
  161. 'id' => 'vid',
  162. 'table' => 'term_data',
  163. 'field' => 'vid',
  164. 'relationship' => 'none',
  165. ),
  166. 'status_extra' => array(
  167. 'operator' => '=',
  168. 'value' => '',
  169. 'group' => '0',
  170. 'exposed' => FALSE,
  171. 'expose' => array(
  172. 'operator' => FALSE,
  173. 'label' => '',
  174. ),
  175. 'id' => 'status_extra',
  176. 'table' => 'node',
  177. 'field' => 'status_extra',
  178. 'relationship' => 'nid',
  179. ),
  180. ));
  181. $handler->override_option('access', array(
  182. 'type' => 'none',
  183. ));
  184. $handler->override_option('cache', array(
  185. 'type' => 'none',
  186. ));
  187. $handler->override_option('empty', 'Pas de résultat');
  188. $handler->override_option('empty_format', '1');
  189. $handler->override_option('style_plugin', 'list');
  190. $handler->override_option('style_options', array(
  191. 'grouping' => '',
  192. 'type' => 'ul',
  193. ));