fgcf_formations_par_thematique.php 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371
  1. <?php
  2. // $Id$
  3. /**
  4. * @file
  5. * Liste des formations pour un thème passé en argument..
  6. */
  7. $view = new view;
  8. $view->name = 'fgcf_formations_par_thematique';
  9. $view->description = 'Liste des formations correpsondant à un thème donné';
  10. $view->tag = 'FGCF';
  11. $view->view_php = '';
  12. $view->base_table = 'node';
  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. 'field_fgcf_fiche_organisme_nid' => array(
  19. 'label' => 'Organisme de formation',
  20. 'required' => 0,
  21. 'delta' => '-1',
  22. 'id' => 'field_fgcf_fiche_organisme_nid',
  23. 'table' => 'node_data_field_fgcf_fiche_organisme',
  24. 'field' => 'field_fgcf_fiche_organisme_nid',
  25. 'relationship' => 'none',
  26. ),
  27. ));
  28. $handler->override_option('fields', array(
  29. 'title' => array(
  30. 'label' => 'Titre',
  31. 'alter' => array(
  32. 'alter_text' => 0,
  33. 'text' => '',
  34. 'make_link' => 0,
  35. 'path' => '',
  36. 'link_class' => '',
  37. 'alt' => '',
  38. 'prefix' => '',
  39. 'suffix' => '',
  40. 'target' => '',
  41. 'help' => '',
  42. 'trim' => 0,
  43. 'max_length' => '',
  44. 'word_boundary' => 1,
  45. 'ellipsis' => 1,
  46. 'html' => 0,
  47. 'strip_tags' => 0,
  48. ),
  49. 'empty' => '',
  50. 'hide_empty' => 0,
  51. 'empty_zero' => 0,
  52. 'link_to_node' => 1,
  53. 'exclude' => 0,
  54. 'id' => 'title',
  55. 'table' => 'node',
  56. 'field' => 'title',
  57. 'relationship' => 'none',
  58. 'group_type' => 'group',
  59. ),
  60. 'field_fgcf_fiche_organisme_nid' => array(
  61. 'label' => 'Organisme',
  62. 'alter' => array(
  63. 'alter_text' => 0,
  64. 'text' => '',
  65. 'make_link' => 0,
  66. 'path' => '',
  67. 'link_class' => '',
  68. 'alt' => '',
  69. 'prefix' => '',
  70. 'suffix' => '',
  71. 'target' => '',
  72. 'help' => '',
  73. 'trim' => 0,
  74. 'max_length' => '',
  75. 'word_boundary' => 1,
  76. 'ellipsis' => 1,
  77. 'html' => 0,
  78. 'strip_tags' => 0,
  79. ),
  80. 'empty' => '',
  81. 'hide_empty' => 0,
  82. 'empty_zero' => 0,
  83. 'link_to_node' => 0,
  84. 'label_type' => 'custom',
  85. 'format' => 'default',
  86. 'multiple' => array(
  87. 'group' => 1,
  88. 'multiple_number' => '',
  89. 'multiple_from' => '',
  90. 'multiple_reversed' => 0,
  91. ),
  92. 'exclude' => 0,
  93. 'id' => 'field_fgcf_fiche_organisme_nid',
  94. 'table' => 'node_data_field_fgcf_fiche_organisme',
  95. 'field' => 'field_fgcf_fiche_organisme_nid',
  96. 'relationship' => 'none',
  97. ),
  98. 'field_fgcf_fiche_format_value' => array(
  99. 'label' => 'Format de cours',
  100. 'alter' => array(
  101. 'alter_text' => 0,
  102. 'text' => '',
  103. 'make_link' => 0,
  104. 'path' => '',
  105. 'link_class' => '',
  106. 'alt' => '',
  107. 'prefix' => '',
  108. 'suffix' => '',
  109. 'target' => '',
  110. 'help' => '',
  111. 'trim' => 0,
  112. 'max_length' => '',
  113. 'word_boundary' => 1,
  114. 'ellipsis' => 1,
  115. 'html' => 0,
  116. 'strip_tags' => 0,
  117. ),
  118. 'empty' => '',
  119. 'hide_empty' => 0,
  120. 'empty_zero' => 0,
  121. 'link_to_node' => 0,
  122. 'label_type' => 'widget',
  123. 'format' => 'default',
  124. 'multiple' => array(
  125. 'group' => 1,
  126. 'multiple_number' => '',
  127. 'multiple_from' => '',
  128. 'multiple_reversed' => 0,
  129. ),
  130. 'exclude' => 0,
  131. 'id' => 'field_fgcf_fiche_format_value',
  132. 'table' => 'node_data_field_fgcf_fiche_format',
  133. 'field' => 'field_fgcf_fiche_format_value',
  134. 'relationship' => 'none',
  135. ),
  136. ));
  137. $handler->override_option('sorts', array(
  138. 'title' => array(
  139. 'order' => 'ASC',
  140. 'id' => 'title',
  141. 'table' => 'node',
  142. 'field' => 'title',
  143. 'relationship' => 'field_fgcf_fiche_organisme_nid',
  144. ),
  145. 'title_1' => array(
  146. 'order' => 'ASC',
  147. 'id' => 'title_1',
  148. 'table' => 'node',
  149. 'field' => 'title',
  150. 'relationship' => 'none',
  151. ),
  152. ));
  153. $handler->override_option('arguments', array(
  154. 'tid' => array(
  155. 'default_action' => 'not found',
  156. 'style_plugin' => 'default_summary',
  157. 'style_options' => array(),
  158. 'wildcard' => 'all',
  159. 'wildcard_substitution' => 'All',
  160. 'title' => '',
  161. 'breadcrumb' => '',
  162. 'default_argument_type' => 'fixed',
  163. 'default_argument' => '',
  164. 'validate_type' => 'none',
  165. 'validate_fail' => 'not found',
  166. 'break_phrase' => 0,
  167. 'add_table' => 0,
  168. 'require_value' => 0,
  169. 'reduce_duplicates' => 0,
  170. 'set_breadcrumb' => 0,
  171. 'id' => 'tid',
  172. 'table' => 'term_node',
  173. 'field' => 'tid',
  174. 'validate_user_argument_type' => 'uid',
  175. 'validate_user_roles' => array(
  176. '2' => 0,
  177. ),
  178. 'relationship' => 'none',
  179. 'default_options_div_prefix' => '',
  180. 'default_argument_fixed' => '',
  181. 'default_argument_user' => 0,
  182. 'default_argument_php' => '',
  183. 'validate_argument_node_type' => array(
  184. 'fgcf_fiche' => 0,
  185. 'fgcf_prestataire' => 0,
  186. 'fgcf_thematique' => 0,
  187. 'page' => 0,
  188. 'story' => 0,
  189. ),
  190. 'validate_argument_node_access' => 0,
  191. 'validate_argument_nid_type' => 'nid',
  192. 'validate_argument_vocabulary' => array(
  193. '1' => 1,
  194. '2' => 0,
  195. '5' => 0,
  196. '4' => 0,
  197. '3' => 0,
  198. ),
  199. 'validate_argument_type' => 'tid',
  200. 'validate_argument_transform' => 0,
  201. 'validate_user_restrict_roles' => 0,
  202. 'validate_argument_php' => '',
  203. ),
  204. 'field_fgcf_fiche_dif_value' => array(
  205. 'default_action' => 'ignore',
  206. 'style_plugin' => 'default_summary',
  207. 'style_options' => array(),
  208. 'wildcard' => 'all',
  209. 'wildcard_substitution' => 'All',
  210. 'title' => '',
  211. 'breadcrumb' => '',
  212. 'default_argument_type' => 'fixed',
  213. 'default_argument' => '',
  214. 'validate_type' => 'none',
  215. 'validate_fail' => 'not found',
  216. 'add_table' => 0,
  217. 'require_value' => 0,
  218. 'reduce_duplicates' => 0,
  219. 'id' => 'field_fgcf_fiche_dif_value',
  220. 'table' => 'node_data_field_fgcf_fiche_dif',
  221. 'field' => 'field_fgcf_fiche_dif_value',
  222. 'validate_user_argument_type' => 'uid',
  223. 'validate_user_roles' => array(
  224. '2' => 0,
  225. ),
  226. 'relationship' => 'none',
  227. 'default_options_div_prefix' => '',
  228. 'default_argument_fixed' => '',
  229. 'default_argument_user' => 0,
  230. 'default_argument_php' => '',
  231. 'validate_argument_node_type' => array(
  232. 'fgcf_fiche' => 0,
  233. 'fgcf_prestataire' => 0,
  234. 'fgcf_thematique' => 0,
  235. 'page' => 0,
  236. 'story' => 0,
  237. ),
  238. 'validate_argument_node_access' => 0,
  239. 'validate_argument_nid_type' => 'nid',
  240. 'validate_argument_vocabulary' => array(
  241. '2' => 0,
  242. '5' => 0,
  243. '4' => 0,
  244. '3' => 0,
  245. '1' => 0,
  246. ),
  247. 'validate_argument_type' => 'tid',
  248. 'validate_argument_transform' => 0,
  249. 'validate_user_restrict_roles' => 0,
  250. 'validate_argument_php' => '',
  251. ),
  252. 'field_fgcf_fiche_modalite_value' => array(
  253. 'default_action' => 'ignore',
  254. 'style_plugin' => 'default_summary',
  255. 'style_options' => array(),
  256. 'wildcard' => 'all',
  257. 'wildcard_substitution' => 'All',
  258. 'title' => '',
  259. 'breadcrumb' => '',
  260. 'default_argument_type' => 'fixed',
  261. 'default_argument' => '',
  262. 'validate_type' => 'none',
  263. 'validate_fail' => 'not found',
  264. 'break_phrase' => 1,
  265. 'add_table' => 0,
  266. 'require_value' => 0,
  267. 'reduce_duplicates' => 1,
  268. 'id' => 'field_fgcf_fiche_modalite_value',
  269. 'table' => 'node_data_field_fgcf_fiche_modalite',
  270. 'field' => 'field_fgcf_fiche_modalite_value',
  271. 'validate_user_argument_type' => 'uid',
  272. 'validate_user_roles' => array(
  273. '2' => 0,
  274. ),
  275. 'relationship' => 'none',
  276. 'default_options_div_prefix' => '',
  277. 'default_argument_fixed' => '',
  278. 'default_argument_user' => 0,
  279. 'default_argument_php' => '',
  280. 'validate_argument_node_type' => array(
  281. 'fgcf_fiche' => 0,
  282. 'fgcf_prestataire' => 0,
  283. 'fgcf_thematique' => 0,
  284. 'page' => 0,
  285. 'story' => 0,
  286. ),
  287. 'validate_argument_node_access' => 0,
  288. 'validate_argument_nid_type' => 'nid',
  289. 'validate_argument_vocabulary' => array(
  290. '2' => 0,
  291. '5' => 0,
  292. '4' => 0,
  293. '3' => 0,
  294. '1' => 0,
  295. ),
  296. 'validate_argument_type' => 'tid',
  297. 'validate_argument_transform' => 0,
  298. 'validate_user_restrict_roles' => 0,
  299. 'validate_argument_php' => '',
  300. ),
  301. ));
  302. $handler->override_option('filters', array(
  303. 'type_1' => array(
  304. 'id' => 'type_1',
  305. 'table' => 'node',
  306. 'field' => 'type',
  307. 'relationship' => 'none',
  308. 'group_type' => 'group',
  309. 'operator' => 'in',
  310. 'value' => array(
  311. 'fgcf_fiche' => 'fgcf_fiche',
  312. ),
  313. 'group' => '0',
  314. 'exposed' => FALSE,
  315. 'expose' => array(
  316. 'operator' => '',
  317. 'label' => '',
  318. 'use_operator' => NULL,
  319. 'identifier' => '',
  320. 'optional' => 1,
  321. 'remember' => 0,
  322. 'single' => 1,
  323. 'reduce' => FALSE,
  324. ),
  325. ),
  326. 'status_extra' => array(
  327. 'operator' => '=',
  328. 'value' => '',
  329. 'group' => '0',
  330. 'exposed' => FALSE,
  331. 'expose' => array(
  332. 'operator' => FALSE,
  333. 'label' => '',
  334. ),
  335. 'id' => 'status_extra',
  336. 'table' => 'node',
  337. 'field' => 'status_extra',
  338. 'relationship' => 'none',
  339. ),
  340. ));
  341. $handler->override_option('access', array(
  342. 'type' => 'none',
  343. ));
  344. $handler->override_option('cache', array(
  345. 'type' => 'none',
  346. ));
  347. $handler->override_option('empty', 'Pas de résultat.');
  348. $handler->override_option('empty_format', '1');
  349. $handler->override_option('style_plugin', 'table');
  350. $handler->override_option('style_options', array(
  351. 'grouping' => '',
  352. 'override' => 1,
  353. 'sticky' => 0,
  354. 'order' => 'asc',
  355. 'columns' => array(
  356. 'title' => 'title',
  357. 'field_fgcf_fiche_organisme_nid' => 'field_fgcf_fiche_organisme_nid',
  358. ),
  359. 'info' => array(
  360. 'title' => array(
  361. 'sortable' => 0,
  362. 'separator' => '',
  363. ),
  364. 'field_fgcf_fiche_organisme_nid' => array(
  365. 'separator' => '',
  366. ),
  367. ),
  368. 'default' => '-1',
  369. ));