fgcf_formations_par_support.php 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513
  1. <?php
  2. // $Id$
  3. /**
  4. * @file
  5. * Liste des formations proposées dans un ensemble de formats
  6. */
  7. $view = new view;
  8. $view->name = 'fgcf_formations_par_support';
  9. $view->description = 'FG Formations par Support';
  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. 'parent' => array(
  19. 'id' => 'parent',
  20. 'table' => 'term_hierarchy',
  21. 'field' => 'parent',
  22. 'required' => 0,
  23. ),
  24. 'field_fgcf_fiche_organisme_nid' => array(
  25. 'id' => 'field_fgcf_fiche_organisme_nid',
  26. 'table' => 'node_data_field_fgcf_fiche_organisme',
  27. 'field' => 'field_fgcf_fiche_organisme_nid',
  28. 'required' => 0,
  29. 'delta' => '-1',
  30. ),
  31. ));
  32. $handler->override_option('fields', array(
  33. 'nid' => array(
  34. 'id' => 'nid',
  35. 'table' => 'node',
  36. 'field' => 'nid',
  37. 'exclude' => TRUE,
  38. 'alter' => array(
  39. 'alter_text' => 0,
  40. 'make_link' => 0,
  41. 'trim' => 0,
  42. 'word_boundary' => 1,
  43. 'ellipsis' => 1,
  44. 'strip_tags' => 0,
  45. 'html' => 0,
  46. ),
  47. 'hide_empty' => 0,
  48. 'empty_zero' => 0,
  49. 'link_to_node' => 1,
  50. ),
  51. 'tid' => array(
  52. 'label' => '',
  53. 'alter' => array(
  54. 'alter_text' => 0,
  55. 'text' => '',
  56. 'make_link' => 0,
  57. 'path' => '',
  58. 'link_class' => '',
  59. 'alt' => '',
  60. 'prefix' => '',
  61. 'suffix' => '',
  62. 'target' => '',
  63. 'help' => '',
  64. 'trim' => 0,
  65. 'max_length' => '',
  66. 'word_boundary' => 1,
  67. 'ellipsis' => 1,
  68. 'html' => 0,
  69. 'strip_tags' => 0,
  70. ),
  71. 'empty' => '',
  72. 'hide_empty' => 0,
  73. 'empty_zero' => 0,
  74. 'set_precision' => FALSE,
  75. 'precision' => 0,
  76. 'decimal' => '.',
  77. 'separator' => ',',
  78. 'prefix' => '',
  79. 'suffix' => '',
  80. 'exclude' => 1,
  81. 'id' => 'tid',
  82. 'table' => 'term_data',
  83. 'field' => 'tid',
  84. 'relationship' => 'parent',
  85. ),
  86. 'name' => array(
  87. 'label' => '',
  88. 'alter' => array(
  89. 'alter_text' => 0,
  90. 'text' => '',
  91. 'make_link' => 1,
  92. 'path' => 'fgcf/theme/[tid]',
  93. 'link_class' => '',
  94. 'alt' => '',
  95. 'prefix' => '',
  96. 'suffix' => '',
  97. 'target' => '',
  98. 'help' => '',
  99. 'trim' => 0,
  100. 'max_length' => '',
  101. 'word_boundary' => 1,
  102. 'ellipsis' => 1,
  103. 'html' => 0,
  104. 'strip_tags' => 0,
  105. ),
  106. 'empty' => '',
  107. 'hide_empty' => 0,
  108. 'empty_zero' => 0,
  109. 'link_to_taxonomy' => 0,
  110. 'exclude' => 1,
  111. 'id' => 'name',
  112. 'table' => 'term_data',
  113. 'field' => 'name',
  114. 'relationship' => 'parent',
  115. ),
  116. 'tid_1' => array(
  117. 'label' => '',
  118. 'alter' => array(
  119. 'alter_text' => 0,
  120. 'text' => '',
  121. 'make_link' => 0,
  122. 'path' => '',
  123. 'link_class' => '',
  124. 'alt' => '',
  125. 'prefix' => '',
  126. 'suffix' => '',
  127. 'target' => '',
  128. 'help' => '',
  129. 'trim' => 0,
  130. 'max_length' => '',
  131. 'word_boundary' => 1,
  132. 'ellipsis' => 1,
  133. 'html' => 0,
  134. 'strip_tags' => 0,
  135. ),
  136. 'empty' => '',
  137. 'hide_empty' => 0,
  138. 'empty_zero' => 0,
  139. 'set_precision' => FALSE,
  140. 'precision' => 0,
  141. 'decimal' => '.',
  142. 'separator' => ',',
  143. 'prefix' => '',
  144. 'suffix' => '',
  145. 'exclude' => 1,
  146. 'id' => 'tid_1',
  147. 'table' => 'term_data',
  148. 'field' => 'tid',
  149. 'relationship' => 'none',
  150. ),
  151. 'description' => array(
  152. 'label' => '',
  153. 'alter' => array(
  154. 'alter_text' => 0,
  155. 'text' => '',
  156. 'make_link' => 1,
  157. 'path' => 'fgcf/theme/[tid_1]',
  158. 'link_class' => '',
  159. 'alt' => '',
  160. 'prefix' => '',
  161. 'suffix' => '',
  162. 'target' => '',
  163. 'help' => '',
  164. 'trim' => 0,
  165. 'max_length' => '',
  166. 'word_boundary' => 1,
  167. 'ellipsis' => 1,
  168. 'html' => 0,
  169. 'strip_tags' => 1,
  170. ),
  171. 'empty' => '',
  172. 'hide_empty' => 0,
  173. 'empty_zero' => 0,
  174. 'exclude' => 1,
  175. 'id' => 'description',
  176. 'table' => 'term_data',
  177. 'field' => 'description',
  178. 'relationship' => 'none',
  179. ),
  180. 'nothing' => array(
  181. 'label' => 'Thème',
  182. 'alter' => array(
  183. 'text' => '[name] / [description]',
  184. 'make_link' => 0,
  185. 'path' => '',
  186. 'link_class' => '',
  187. 'alt' => '',
  188. 'prefix' => '',
  189. 'suffix' => '',
  190. 'target' => '',
  191. 'help' => '',
  192. 'trim' => 0,
  193. 'max_length' => '',
  194. 'word_boundary' => 1,
  195. 'ellipsis' => 1,
  196. 'html' => 0,
  197. 'strip_tags' => 0,
  198. ),
  199. 'empty' => '',
  200. 'hide_empty' => 0,
  201. 'empty_zero' => 0,
  202. 'exclude' => 0,
  203. 'id' => 'nothing',
  204. 'table' => 'views',
  205. 'field' => 'nothing',
  206. 'relationship' => 'none',
  207. ),
  208. 'title' => array(
  209. 'id' => 'title',
  210. 'table' => 'node',
  211. 'field' => 'title',
  212. 'label' => 'Titre',
  213. 'alter' => array(
  214. 'alter_text' => 0,
  215. 'make_link' => 0,
  216. 'trim' => 0,
  217. 'word_boundary' => 1,
  218. 'ellipsis' => 1,
  219. 'strip_tags' => 0,
  220. 'html' => 0,
  221. ),
  222. 'hide_empty' => 0,
  223. 'empty_zero' => 0,
  224. 'link_to_node' => 1,
  225. ),
  226. 'field_fgcf_fiche_organisme_nid' => array(
  227. 'id' => 'field_fgcf_fiche_organisme_nid',
  228. 'table' => 'node_data_field_fgcf_fiche_organisme',
  229. 'field' => 'field_fgcf_fiche_organisme_nid',
  230. 'label' => 'Organisme',
  231. 'alter' => array(
  232. 'alter_text' => 0,
  233. 'make_link' => 0,
  234. 'trim' => 0,
  235. 'word_boundary' => 1,
  236. 'ellipsis' => 1,
  237. 'strip_tags' => 0,
  238. 'html' => 0,
  239. ),
  240. 'hide_empty' => 0,
  241. 'empty_zero' => 0,
  242. 'link_to_node' => 0,
  243. 'label_type' => 'custom',
  244. 'multiple' => array(
  245. 'group' => 1,
  246. 'multiple_reversed' => 0,
  247. ),
  248. ),
  249. 'field_fgcf_fiche_format_value' => array(
  250. 'id' => 'field_fgcf_fiche_format_value',
  251. 'table' => 'node_data_field_fgcf_fiche_format',
  252. 'field' => 'field_fgcf_fiche_format_value',
  253. 'label' => 'Format de cours',
  254. 'alter' => array(
  255. 'alter_text' => 0,
  256. 'make_link' => 0,
  257. 'trim' => 0,
  258. 'word_boundary' => 1,
  259. 'ellipsis' => 1,
  260. 'strip_tags' => 0,
  261. 'html' => 0,
  262. ),
  263. 'hide_empty' => 0,
  264. 'empty_zero' => 0,
  265. 'link_to_node' => 0,
  266. 'multiple' => array(
  267. 'group' => 1,
  268. 'multiple_reversed' => 0,
  269. ),
  270. ),
  271. ));
  272. $handler->override_option('sorts', array(
  273. 'name' => array(
  274. 'id' => 'name',
  275. 'table' => 'term_data',
  276. 'field' => 'name',
  277. 'relationship' => 'parent',
  278. ),
  279. 'name_1' => array(
  280. 'id' => 'name_1',
  281. 'table' => 'term_data',
  282. 'field' => 'name',
  283. ),
  284. 'title' => array(
  285. 'id' => 'title',
  286. 'table' => 'node',
  287. 'field' => 'title',
  288. 'relationship' => 'field_fgcf_fiche_organisme_nid',
  289. ),
  290. ));
  291. $handler->override_option('arguments', array(
  292. 'field_fgcf_fiche_format_value' => array(
  293. 'default_action' => 'empty',
  294. 'style_plugin' => 'default_summary',
  295. 'style_options' => array(
  296. 'items_per_page' => '25',
  297. ),
  298. 'wildcard' => 'all',
  299. 'wildcard_substitution' => 'All',
  300. 'title' => '',
  301. 'breadcrumb' => '',
  302. 'default_argument_type' => 'fixed',
  303. 'default_argument' => '',
  304. 'validate_type' => 'none',
  305. 'validate_fail' => 'not found',
  306. 'break_phrase' => 1,
  307. 'not' => 0,
  308. 'id' => 'field_fgcf_fiche_format_value',
  309. 'table' => 'node_data_field_fgcf_fiche_format',
  310. 'field' => 'field_fgcf_fiche_format_value',
  311. 'validate_options' => array(
  312. 'vids' => array(
  313. '2' => 2,
  314. ),
  315. 'type' => 'tids',
  316. 'transform' => 0,
  317. ),
  318. 'validate_user_argument_type' => 'uid',
  319. 'validate_user_roles' => array(
  320. '2' => 0,
  321. ),
  322. 'relationship' => 'none',
  323. 'default_options_div_prefix' => '',
  324. 'default_argument_fixed' => '',
  325. 'default_argument_user' => 0,
  326. 'default_argument_php' => '',
  327. 'validate_argument_node_type' => array(
  328. 'fgcf_fiche' => 0,
  329. 'fgcf_prestataire' => 0,
  330. 'fgcf_thematique' => 0,
  331. 'page' => 0,
  332. 'story' => 0,
  333. ),
  334. 'validate_argument_node_access' => 0,
  335. 'validate_argument_nid_type' => 'nid',
  336. 'validate_argument_vocabulary' => array(
  337. '2' => 0,
  338. '5' => 0,
  339. '4' => 0,
  340. '3' => 0,
  341. '1' => 0,
  342. ),
  343. 'validate_argument_type' => 'tids',
  344. 'validate_argument_transform' => 0,
  345. 'validate_user_restrict_roles' => 0,
  346. 'validate_argument_php' => '',
  347. ),
  348. 'field_fgcf_fiche_dif_value' => array(
  349. 'default_action' => 'ignore',
  350. 'style_plugin' => 'default_summary',
  351. 'style_options' => array(),
  352. 'wildcard' => 'all',
  353. 'wildcard_substitution' => 'All',
  354. 'title' => '',
  355. 'breadcrumb' => '',
  356. 'default_argument_type' => 'fixed',
  357. 'default_argument' => '',
  358. 'validate_type' => 'none',
  359. 'validate_fail' => 'not found',
  360. 'add_table' => 0,
  361. 'require_value' => 0,
  362. 'reduce_duplicates' => 0,
  363. 'id' => 'field_fgcf_fiche_dif_value',
  364. 'table' => 'node_data_field_fgcf_fiche_dif',
  365. 'field' => 'field_fgcf_fiche_dif_value',
  366. 'validate_user_argument_type' => 'uid',
  367. 'validate_user_roles' => array(
  368. '2' => 0,
  369. ),
  370. 'relationship' => 'none',
  371. 'default_options_div_prefix' => '',
  372. 'default_argument_fixed' => '',
  373. 'default_argument_user' => 0,
  374. 'default_argument_php' => '',
  375. 'validate_argument_node_type' => array(
  376. 'fgcf_fiche' => 0,
  377. 'fgcf_prestataire' => 0,
  378. 'fgcf_thematique' => 0,
  379. 'page' => 0,
  380. 'story' => 0,
  381. ),
  382. 'validate_argument_node_access' => 0,
  383. 'validate_argument_nid_type' => 'nid',
  384. 'validate_argument_vocabulary' => array(
  385. '2' => 0,
  386. '5' => 0,
  387. '4' => 0,
  388. '3' => 0,
  389. '1' => 0,
  390. ),
  391. 'validate_argument_type' => 'tid',
  392. 'validate_argument_transform' => 0,
  393. 'validate_user_restrict_roles' => 0,
  394. 'validate_argument_php' => '',
  395. ),
  396. 'field_fgcf_fiche_modalite_value' => array(
  397. 'default_action' => 'ignore',
  398. 'style_plugin' => 'default_summary',
  399. 'style_options' => array(),
  400. 'wildcard' => 'all',
  401. 'wildcard_substitution' => 'All',
  402. 'title' => '',
  403. 'breadcrumb' => '',
  404. 'default_argument_type' => 'fixed',
  405. 'default_argument' => '',
  406. 'validate_type' => 'none',
  407. 'validate_fail' => 'not found',
  408. 'break_phrase' => 1,
  409. 'add_table' => 0,
  410. 'require_value' => 0,
  411. 'reduce_duplicates' => 1,
  412. 'id' => 'field_fgcf_fiche_modalite_value',
  413. 'table' => 'node_data_field_fgcf_fiche_modalite',
  414. 'field' => 'field_fgcf_fiche_modalite_value',
  415. 'validate_user_argument_type' => 'uid',
  416. 'validate_user_roles' => array(
  417. '2' => 0,
  418. ),
  419. 'relationship' => 'none',
  420. 'default_options_div_prefix' => '',
  421. 'default_argument_fixed' => '',
  422. 'default_argument_user' => 0,
  423. 'default_argument_php' => '',
  424. 'validate_argument_node_type' => array(
  425. 'fgcf_fiche' => 0,
  426. 'fgcf_prestataire' => 0,
  427. 'fgcf_thematique' => 0,
  428. 'page' => 0,
  429. 'story' => 0,
  430. ),
  431. 'validate_argument_node_access' => 0,
  432. 'validate_argument_nid_type' => 'nid',
  433. 'validate_argument_vocabulary' => array(
  434. '2' => 0,
  435. '5' => 0,
  436. '4' => 0,
  437. '3' => 0,
  438. '1' => 0,
  439. ),
  440. 'validate_argument_type' => 'tid',
  441. 'validate_argument_transform' => 0,
  442. 'validate_user_restrict_roles' => 0,
  443. 'validate_argument_php' => '',
  444. ),
  445. ));
  446. $handler->override_option('filters', array(
  447. 'type' => array(
  448. 'id' => 'type',
  449. 'table' => 'node',
  450. 'field' => 'type',
  451. 'value' => array(
  452. 'fgcf_fiche' => 'fgcf_fiche',
  453. ),
  454. ),
  455. 'status_extra' => array(
  456. 'id' => 'status_extra',
  457. 'table' => 'node',
  458. 'field' => 'status_extra',
  459. ),
  460. ));
  461. $handler->override_option('access', array(
  462. 'type' => 'none',
  463. ));
  464. $handler->override_option('cache', array(
  465. 'type' => 'none',
  466. ));
  467. $handler->override_option('header_format', '1');
  468. $handler->override_option('header_empty', 0);
  469. $handler->override_option('footer_format', '1');
  470. $handler->override_option('footer_empty', 0);
  471. $handler->override_option('empty', 'pas de résultat');
  472. $handler->override_option('empty_format', '1');
  473. $handler->override_option('use_pager', '1');
  474. $handler->override_option('style_plugin', 'table');
  475. $handler->override_option('style_options', array(
  476. 'columns' => array(
  477. 'nid' => 'nid',
  478. 'name' => 'name',
  479. 'name_1' => 'name_1',
  480. 'title' => 'title',
  481. 'field_fgcf_fiche_format_value' => 'field_fgcf_fiche_format_value',
  482. ),
  483. 'default' => '-1',
  484. 'info' => array(
  485. 'nid' => array(
  486. 'sortable' => 0,
  487. 'align' => '',
  488. 'separator' => '',
  489. ),
  490. 'name' => array(
  491. 'sortable' => 0,
  492. 'align' => '',
  493. 'separator' => '',
  494. ),
  495. 'name_1' => array(
  496. 'sortable' => 0,
  497. 'align' => '',
  498. 'separator' => '',
  499. ),
  500. 'title' => array(
  501. 'sortable' => 0,
  502. 'align' => '',
  503. 'separator' => '',
  504. ),
  505. 'field_fgcf_fiche_format_value' => array(
  506. 'align' => '',
  507. 'separator' => '',
  508. ),
  509. ),
  510. 'override' => 1,
  511. 'sticky' => 0,
  512. ));