fgcf_thematiques_premier_niveau.php 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. <?php
  2. // $Id$
  3. /**
  4. * @file
  5. * Liste des thèmes de 1er niveau.
  6. */
  7. $view = new view;
  8. $view->name = 'fgcf_thematiques_premier_niveau';
  9. $view->description = 'Liste des thèmes de 1er niveau';
  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('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. 'field_fgcf_thematique_logo_fid' => array(
  64. 'label' => '',
  65. 'alter' => array(
  66. 'alter_text' => 0,
  67. 'text' => '',
  68. 'make_link' => 1,
  69. 'path' => 'fgcf/theme/[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' => 0,
  82. ),
  83. 'empty' => '',
  84. 'hide_empty' => 0,
  85. 'empty_zero' => 0,
  86. 'link_to_node' => 0,
  87. 'label_type' => 'none',
  88. 'format' => 'fgcf_theme_logo_liste_default',
  89. 'multiple' => array(
  90. 'group' => TRUE,
  91. 'multiple_number' => '',
  92. 'multiple_from' => '',
  93. 'multiple_reversed' => FALSE,
  94. ),
  95. 'exclude' => 0,
  96. 'id' => 'field_fgcf_thematique_logo_fid',
  97. 'table' => 'node_data_field_fgcf_thematique_logo',
  98. 'field' => 'field_fgcf_thematique_logo_fid',
  99. 'relationship' => 'nid',
  100. ),
  101. 'description' => array(
  102. 'label' => '',
  103. 'alter' => array(
  104. 'alter_text' => 0,
  105. 'text' => '',
  106. 'make_link' => 1,
  107. 'path' => 'fgcf/theme/[tid]',
  108. 'link_class' => '',
  109. 'alt' => '',
  110. 'prefix' => '',
  111. 'suffix' => '',
  112. 'target' => '',
  113. 'help' => '',
  114. 'trim' => 0,
  115. 'max_length' => '',
  116. 'word_boundary' => 1,
  117. 'ellipsis' => 1,
  118. 'html' => 0,
  119. 'strip_tags' => 1,
  120. ),
  121. 'empty' => '',
  122. 'hide_empty' => 0,
  123. 'empty_zero' => 0,
  124. 'exclude' => 0,
  125. 'id' => 'description',
  126. 'table' => 'term_data',
  127. 'field' => 'description',
  128. 'relationship' => 'none',
  129. ),
  130. ));
  131. $handler->override_option('sorts', array(
  132. 'weight' => array(
  133. 'order' => 'ASC',
  134. 'id' => 'weight',
  135. 'table' => 'term_data',
  136. 'field' => 'weight',
  137. 'relationship' => 'none',
  138. ),
  139. ));
  140. $handler->override_option('arguments', array(
  141. 'vid' => array(
  142. 'default_action' => 'empty',
  143. 'style_plugin' => 'default_summary',
  144. 'style_options' => array(),
  145. 'wildcard' => 'all',
  146. 'wildcard_substitution' => 'All',
  147. 'title' => '',
  148. 'breadcrumb' => '',
  149. 'default_argument_type' => 'fixed',
  150. 'default_argument' => '',
  151. 'validate_type' => 'none',
  152. 'validate_fail' => 'not found',
  153. 'id' => 'vid',
  154. 'table' => 'vocabulary',
  155. 'field' => 'vid',
  156. 'validate_user_argument_type' => 'uid',
  157. 'validate_user_roles' => array(
  158. '2' => 0,
  159. ),
  160. 'relationship' => 'none',
  161. 'default_options_div_prefix' => '',
  162. 'default_argument_fixed' => '',
  163. 'default_argument_user' => 0,
  164. 'default_argument_php' => '',
  165. 'validate_argument_node_type' => array(
  166. 'fgcf_fiche' => 0,
  167. 'fgcf_prestataire' => 0,
  168. 'fgcf_thematique' => 0,
  169. 'page' => 0,
  170. 'story' => 0,
  171. ),
  172. 'validate_argument_node_access' => 0,
  173. 'validate_argument_nid_type' => 'nid',
  174. 'validate_argument_vocabulary' => array(
  175. '2' => 0,
  176. '5' => 0,
  177. '4' => 0,
  178. '3' => 0,
  179. '1' => 0,
  180. ),
  181. 'validate_argument_type' => 'tid',
  182. 'validate_argument_transform' => 0,
  183. 'validate_user_restrict_roles' => 0,
  184. 'validate_argument_php' => '',
  185. ),
  186. ));
  187. $handler->override_option('filters', array(
  188. 'status_extra' => array(
  189. 'operator' => '=',
  190. 'value' => '',
  191. 'group' => '0',
  192. 'exposed' => FALSE,
  193. 'expose' => array(
  194. 'operator' => FALSE,
  195. 'label' => '',
  196. ),
  197. 'id' => 'status_extra',
  198. 'table' => 'node',
  199. 'field' => 'status_extra',
  200. 'relationship' => 'nid',
  201. ),
  202. ));
  203. $handler->override_option('access', array(
  204. 'type' => 'none',
  205. ));
  206. $handler->override_option('cache', array(
  207. 'type' => 'none',
  208. ));
  209. $handler->override_option('empty', 'Pas de résultat');
  210. $handler->override_option('empty_format', '1');
  211. $handler->override_option('items_per_page', 0);
  212. $handler->override_option('use_pager', '0');
  213. $handler->override_option('style_plugin', 'table');
  214. $handler->override_option('row_options', array(
  215. 'inline' => array(
  216. 'field_fgcf_thematique_logo_fid' => 'field_fgcf_thematique_logo_fid',
  217. 'description' => 'description',
  218. ),
  219. 'separator' => '',
  220. 'hide_empty' => 0,
  221. ));