fgcf.defaults.inc 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125
  1. <?php
  2. /**
  3. * Helper to implementation of hook_content_default_fields().
  4. */
  5. function _fgcf_content_default_fields() {
  6. $fields = array();
  7. // Exported field: field_fgcf_fiche_contenu
  8. $fields[] = array(
  9. 'field_name' => 'field_fgcf_fiche_contenu',
  10. 'type_name' => 'fgcf_fiche',
  11. 'display_settings' => array(
  12. 'weight' => '1',
  13. 'parent' => '',
  14. 'label' => array(
  15. 'format' => 'above',
  16. ),
  17. 'teaser' => array(
  18. 'format' => 'default',
  19. 'exclude' => 1,
  20. ),
  21. 'full' => array(
  22. 'format' => 'default',
  23. 'exclude' => 0,
  24. ),
  25. '4' => array(
  26. 'format' => 'default',
  27. 'exclude' => 0,
  28. ),
  29. '2' => array(
  30. 'format' => 'default',
  31. 'exclude' => 0,
  32. ),
  33. '3' => array(
  34. 'format' => 'default',
  35. 'exclude' => 0,
  36. ),
  37. 'token' => array(
  38. 'format' => 'default',
  39. 'exclude' => 0,
  40. ),
  41. ),
  42. 'widget_active' => '1',
  43. 'type' => 'text',
  44. 'required' => '1',
  45. 'multiple' => '0',
  46. 'module' => 'text',
  47. 'active' => '1',
  48. 'text_processing' => '1',
  49. 'max_length' => '',
  50. 'allowed_values' => '',
  51. 'allowed_values_php' => '',
  52. 'widget' => array(
  53. 'rows' => '10',
  54. 'size' => 60,
  55. 'default_value' => array(
  56. '0' => array(
  57. 'value' => '',
  58. '_error_element' => 'default_value_widget][field_fgcf_fiche_contenu][0][value',
  59. ),
  60. ),
  61. 'default_value_php' => NULL,
  62. 'label' => 'Contenu',
  63. 'weight' => '1',
  64. 'description' => '',
  65. 'type' => 'text_textarea',
  66. 'module' => 'text',
  67. ),
  68. );
  69. // Exported field: field_fgcf_fiche_dif
  70. $fields[] = array(
  71. 'field_name' => 'field_fgcf_fiche_dif',
  72. 'type_name' => 'fgcf_fiche',
  73. 'display_settings' => array(
  74. 'weight' => '8',
  75. 'parent' => 'group_fgcf_fiche_meta',
  76. 'label' => array(
  77. 'format' => 'above',
  78. ),
  79. 'teaser' => array(
  80. 'format' => 'default',
  81. 'exclude' => 0,
  82. ),
  83. 'full' => array(
  84. 'format' => 'default',
  85. 'exclude' => 0,
  86. ),
  87. '4' => array(
  88. 'format' => 'default',
  89. 'exclude' => 0,
  90. ),
  91. '2' => array(
  92. 'format' => 'default',
  93. 'exclude' => 0,
  94. ),
  95. '3' => array(
  96. 'format' => 'default',
  97. 'exclude' => 0,
  98. ),
  99. 'token' => array(
  100. 'format' => 'default',
  101. 'exclude' => 0,
  102. ),
  103. ),
  104. 'widget_active' => '1',
  105. 'type' => 'text',
  106. 'required' => '1',
  107. 'multiple' => '0',
  108. 'module' => 'text',
  109. 'active' => '1',
  110. 'text_processing' => '0',
  111. 'max_length' => '',
  112. 'allowed_values' => 'n|Non
  113. o|Oui',
  114. 'allowed_values_php' => '',
  115. 'widget' => array(
  116. 'default_value' => array(
  117. '0' => array(
  118. 'value' => 'n',
  119. ),
  120. ),
  121. 'default_value_php' => NULL,
  122. 'label' => 'Eligibilité DIF',
  123. 'weight' => '8',
  124. 'description' => '',
  125. 'type' => 'optionwidgets_buttons',
  126. 'module' => 'optionwidgets',
  127. ),
  128. );
  129. // Exported field: field_fgcf_fiche_format
  130. $fields[] = array(
  131. 'field_name' => 'field_fgcf_fiche_format',
  132. 'type_name' => 'fgcf_fiche',
  133. 'display_settings' => array(
  134. 'weight' => '11',
  135. 'parent' => 'group_fgcf_fiche_meta',
  136. 'label' => array(
  137. 'format' => 'above',
  138. ),
  139. 'teaser' => array(
  140. 'format' => 'default',
  141. 'exclude' => 0,
  142. ),
  143. 'full' => array(
  144. 'format' => 'link',
  145. 'exclude' => 0,
  146. ),
  147. '4' => array(
  148. 'format' => 'default',
  149. 'exclude' => 0,
  150. ),
  151. '2' => array(
  152. 'format' => 'default',
  153. 'exclude' => 0,
  154. ),
  155. '3' => array(
  156. 'format' => 'default',
  157. 'exclude' => 0,
  158. ),
  159. 'token' => array(
  160. 'format' => 'default',
  161. 'exclude' => 0,
  162. ),
  163. ),
  164. 'widget_active' => '1',
  165. 'type' => 'content_taxonomy',
  166. 'required' => '1',
  167. 'multiple' => '1',
  168. 'module' => 'content_taxonomy',
  169. 'active' => '1',
  170. 'save_term_node' => 0,
  171. 'vid' => '2',
  172. 'parent' => '0',
  173. 'parent_php_code' => '',
  174. 'depth' => '',
  175. 'widget' => array(
  176. 'group_parent' => '0',
  177. 'show_depth' => 1,
  178. 'default_value' => NULL,
  179. 'default_value_php' => NULL,
  180. 'new_terms' => 'insert',
  181. 'extra_parent' => '0',
  182. 'maxlength' => '255',
  183. 'label' => 'Format de cours',
  184. 'weight' => '11',
  185. 'description' => '',
  186. 'type' => 'content_taxonomy_autocomplete',
  187. 'module' => 'content_taxonomy_autocomplete',
  188. ),
  189. );
  190. // Exported field: field_fgcf_fiche_heures
  191. $fields[] = array(
  192. 'field_name' => 'field_fgcf_fiche_heures',
  193. 'type_name' => 'fgcf_fiche',
  194. 'display_settings' => array(
  195. 'weight' => '9',
  196. 'parent' => 'group_fgcf_fiche_meta',
  197. 'label' => array(
  198. 'format' => 'above',
  199. ),
  200. 'teaser' => array(
  201. 'format' => 'default',
  202. 'exclude' => 0,
  203. ),
  204. 'full' => array(
  205. 'format' => 'default',
  206. 'exclude' => 0,
  207. ),
  208. '4' => array(
  209. 'format' => 'default',
  210. 'exclude' => 0,
  211. ),
  212. '2' => array(
  213. 'format' => 'default',
  214. 'exclude' => 0,
  215. ),
  216. '3' => array(
  217. 'format' => 'default',
  218. 'exclude' => 0,
  219. ),
  220. 'token' => array(
  221. 'format' => 'default',
  222. 'exclude' => 0,
  223. ),
  224. ),
  225. 'widget_active' => '1',
  226. 'type' => 'number_float',
  227. 'required' => '0',
  228. 'multiple' => '0',
  229. 'module' => 'number',
  230. 'active' => '1',
  231. 'prefix' => '',
  232. 'suffix' => ' heure| heures',
  233. 'min' => '0',
  234. 'max' => '',
  235. 'allowed_values' => '',
  236. 'allowed_values_php' => '',
  237. 'widget' => array(
  238. 'default_value' => array(
  239. '0' => array(
  240. 'value' => '',
  241. '_error_element' => 'default_value_widget][field_fgcf_fiche_heures][0][value',
  242. ),
  243. ),
  244. 'default_value_php' => NULL,
  245. 'label' => 'Durée',
  246. 'weight' => '9',
  247. 'description' => '',
  248. 'type' => 'number',
  249. 'module' => 'number',
  250. ),
  251. );
  252. // Exported field: field_fgcf_fiche_jours
  253. $fields[] = array(
  254. 'field_name' => 'field_fgcf_fiche_jours',
  255. 'type_name' => 'fgcf_fiche',
  256. 'display_settings' => array(
  257. 'weight' => '10',
  258. 'parent' => 'group_fgcf_fiche_meta',
  259. 'label' => array(
  260. 'format' => 'above',
  261. ),
  262. 'teaser' => array(
  263. 'format' => 'default',
  264. 'exclude' => 0,
  265. ),
  266. 'full' => array(
  267. 'format' => 'default',
  268. 'exclude' => 0,
  269. ),
  270. '4' => array(
  271. 'format' => 'default',
  272. 'exclude' => 0,
  273. ),
  274. '2' => array(
  275. 'format' => 'default',
  276. 'exclude' => 0,
  277. ),
  278. '3' => array(
  279. 'format' => 'default',
  280. 'exclude' => 0,
  281. ),
  282. 'token' => array(
  283. 'format' => 'default',
  284. 'exclude' => 0,
  285. ),
  286. ),
  287. 'widget_active' => '1',
  288. 'type' => 'number_float',
  289. 'required' => '0',
  290. 'multiple' => '0',
  291. 'module' => 'number',
  292. 'active' => '1',
  293. 'prefix' => '',
  294. 'suffix' => ' jour| jours',
  295. 'min' => '0',
  296. 'max' => '',
  297. 'allowed_values' => '',
  298. 'allowed_values_php' => '',
  299. 'widget' => array(
  300. 'default_value' => array(
  301. '0' => array(
  302. 'value' => '',
  303. '_error_element' => 'default_value_widget][field_fgcf_fiche_jours][0][value',
  304. ),
  305. ),
  306. 'default_value_php' => NULL,
  307. 'label' => 'Longueur',
  308. 'weight' => '10',
  309. 'description' => '',
  310. 'type' => 'number',
  311. 'module' => 'number',
  312. ),
  313. );
  314. // Exported field: field_fgcf_fiche_modalite
  315. $fields[] = array(
  316. 'field_name' => 'field_fgcf_fiche_modalite',
  317. 'type_name' => 'fgcf_fiche',
  318. 'display_settings' => array(
  319. 'weight' => '7',
  320. 'parent' => 'group_fgcf_fiche_meta',
  321. 'label' => array(
  322. 'format' => 'above',
  323. ),
  324. 'teaser' => array(
  325. 'format' => 'default',
  326. 'exclude' => 0,
  327. ),
  328. 'full' => array(
  329. 'format' => 'default',
  330. 'exclude' => 0,
  331. ),
  332. '4' => array(
  333. 'format' => 'default',
  334. 'exclude' => 0,
  335. ),
  336. '2' => array(
  337. 'format' => 'default',
  338. 'exclude' => 0,
  339. ),
  340. '3' => array(
  341. 'format' => 'default',
  342. 'exclude' => 0,
  343. ),
  344. 'token' => array(
  345. 'format' => 'default',
  346. 'exclude' => 0,
  347. ),
  348. ),
  349. 'widget_active' => '1',
  350. 'type' => 'number_integer',
  351. 'required' => '1',
  352. 'multiple' => '1',
  353. 'module' => 'number',
  354. 'active' => '1',
  355. 'prefix' => '',
  356. 'suffix' => '',
  357. 'min' => '',
  358. 'max' => '',
  359. 'allowed_values' => '1|Intra-entreprise
  360. 2|Inter-entreprises
  361. 3|A distance: internet/téléphone',
  362. 'allowed_values_php' => '',
  363. 'widget' => array(
  364. 'default_value' => array(
  365. '0' => array(
  366. 'value' => '',
  367. ),
  368. ),
  369. 'default_value_php' => NULL,
  370. 'label' => 'Modalité',
  371. 'weight' => '7',
  372. 'description' => '',
  373. 'type' => 'optionwidgets_buttons',
  374. 'module' => 'optionwidgets',
  375. ),
  376. );
  377. // Exported field: field_fgcf_fiche_objectif
  378. $fields[] = array(
  379. 'field_name' => 'field_fgcf_fiche_objectif',
  380. 'type_name' => 'fgcf_fiche',
  381. 'display_settings' => array(
  382. 'weight' => 0,
  383. 'parent' => '',
  384. 'label' => array(
  385. 'format' => 'above',
  386. ),
  387. 'teaser' => array(
  388. 'format' => 'default',
  389. 'exclude' => 1,
  390. ),
  391. 'full' => array(
  392. 'format' => 'default',
  393. 'exclude' => 0,
  394. ),
  395. '4' => array(
  396. 'format' => 'default',
  397. 'exclude' => 0,
  398. ),
  399. '2' => array(
  400. 'format' => 'default',
  401. 'exclude' => 0,
  402. ),
  403. '3' => array(
  404. 'format' => 'default',
  405. 'exclude' => 0,
  406. ),
  407. 'token' => array(
  408. 'format' => 'default',
  409. 'exclude' => 0,
  410. ),
  411. ),
  412. 'widget_active' => '1',
  413. 'type' => 'text',
  414. 'required' => '1',
  415. 'multiple' => '0',
  416. 'module' => 'text',
  417. 'active' => '1',
  418. 'text_processing' => '1',
  419. 'max_length' => '1000',
  420. 'allowed_values' => '',
  421. 'allowed_values_php' => '',
  422. 'widget' => array(
  423. 'rows' => '3',
  424. 'size' => 60,
  425. 'default_value' => array(
  426. '0' => array(
  427. 'value' => '',
  428. '_error_element' => 'default_value_widget][field_fgcf_fiche_objectif][0][value',
  429. ),
  430. ),
  431. 'default_value_php' => NULL,
  432. 'label' => 'Objectif',
  433. 'weight' => 0,
  434. 'description' => '',
  435. 'type' => 'text_textarea',
  436. 'module' => 'text',
  437. ),
  438. );
  439. // Exported field: field_fgcf_fiche_organisme
  440. $fields[] = array(
  441. 'field_name' => 'field_fgcf_fiche_organisme',
  442. 'type_name' => 'fgcf_fiche',
  443. 'display_settings' => array(
  444. 'weight' => '6',
  445. 'parent' => 'group_fgcf_fiche_meta',
  446. 'label' => array(
  447. 'format' => 'above',
  448. ),
  449. 'teaser' => array(
  450. 'format' => 'default',
  451. 'exclude' => 0,
  452. ),
  453. 'full' => array(
  454. 'format' => 'default',
  455. 'exclude' => 0,
  456. ),
  457. '4' => array(
  458. 'format' => 'default',
  459. 'exclude' => 0,
  460. ),
  461. '2' => array(
  462. 'format' => 'default',
  463. 'exclude' => 0,
  464. ),
  465. '3' => array(
  466. 'format' => 'default',
  467. 'exclude' => 0,
  468. ),
  469. 'token' => array(
  470. 'format' => 'default',
  471. 'exclude' => 0,
  472. ),
  473. ),
  474. 'widget_active' => '1',
  475. 'type' => 'nodereference',
  476. 'required' => '1',
  477. 'multiple' => '1',
  478. 'module' => 'nodereference',
  479. 'active' => '1',
  480. 'referenceable_types' => array(
  481. 'fgcf_prestataire' => 'fgcf_prestataire',
  482. 'fgcf_thematique' => 0,
  483. 'fgcf_fiche' => 0,
  484. 'page' => 0,
  485. 'story' => 0,
  486. ),
  487. 'advanced_view' => '',
  488. 'advanced_view_args' => '',
  489. 'widget' => array(
  490. 'autocomplete_match' => 'contains',
  491. 'size' => 60,
  492. 'default_value' => array(
  493. '0' => array(
  494. 'nid' => '',
  495. ),
  496. ),
  497. 'default_value_php' => NULL,
  498. 'label' => 'Organisme de formation',
  499. 'weight' => '6',
  500. 'description' => '',
  501. 'type' => 'nodereference_select',
  502. 'module' => 'nodereference',
  503. ),
  504. );
  505. // Exported field: field_fgcf_fiche_public
  506. $fields[] = array(
  507. 'field_name' => 'field_fgcf_fiche_public',
  508. 'type_name' => 'fgcf_fiche',
  509. 'display_settings' => array(
  510. 'weight' => '14',
  511. 'parent' => 'group_fgcf_fiche_meta',
  512. 'label' => array(
  513. 'format' => 'above',
  514. ),
  515. 'teaser' => array(
  516. 'format' => 'default',
  517. 'exclude' => 0,
  518. ),
  519. 'full' => array(
  520. 'format' => 'link',
  521. 'exclude' => 0,
  522. ),
  523. '4' => array(
  524. 'format' => 'default',
  525. 'exclude' => 0,
  526. ),
  527. '2' => array(
  528. 'format' => 'default',
  529. 'exclude' => 0,
  530. ),
  531. '3' => array(
  532. 'format' => 'default',
  533. 'exclude' => 0,
  534. ),
  535. 'token' => array(
  536. 'format' => 'default',
  537. 'exclude' => 0,
  538. ),
  539. ),
  540. 'widget_active' => '1',
  541. 'type' => 'content_taxonomy',
  542. 'required' => '1',
  543. 'multiple' => '1',
  544. 'module' => 'content_taxonomy',
  545. 'active' => '1',
  546. 'save_term_node' => 0,
  547. 'vid' => '5',
  548. 'parent' => '0',
  549. 'parent_php_code' => '',
  550. 'depth' => '',
  551. 'widget' => array(
  552. 'new_terms' => 'insert',
  553. 'extra_parent' => '0',
  554. 'maxlength' => '255',
  555. 'active_tags' => NULL,
  556. 'default_value' => array(
  557. '0' => array(
  558. 'value' => '31',
  559. ),
  560. ),
  561. 'default_value_php' => NULL,
  562. 'label' => 'Public visé',
  563. 'weight' => '14',
  564. 'description' => '',
  565. 'type' => 'content_taxonomy_autocomplete',
  566. 'module' => 'content_taxonomy_autocomplete',
  567. ),
  568. );
  569. // Exported field: field_fgcf_fiche_reference
  570. $fields[] = array(
  571. 'field_name' => 'field_fgcf_fiche_reference',
  572. 'type_name' => 'fgcf_fiche',
  573. 'display_settings' => array(
  574. 'weight' => '-2',
  575. 'parent' => '',
  576. 'label' => array(
  577. 'format' => 'above',
  578. ),
  579. 'teaser' => array(
  580. 'format' => 'default',
  581. 'exclude' => 0,
  582. ),
  583. 'full' => array(
  584. 'format' => 'default',
  585. 'exclude' => 0,
  586. ),
  587. '4' => array(
  588. 'format' => 'default',
  589. 'exclude' => 0,
  590. ),
  591. '2' => array(
  592. 'format' => 'default',
  593. 'exclude' => 0,
  594. ),
  595. '3' => array(
  596. 'format' => 'default',
  597. 'exclude' => 0,
  598. ),
  599. 'token' => array(
  600. 'format' => 'default',
  601. 'exclude' => 0,
  602. ),
  603. ),
  604. 'widget_active' => '1',
  605. 'type' => 'text',
  606. 'required' => '1',
  607. 'multiple' => '0',
  608. 'module' => 'text',
  609. 'active' => '1',
  610. 'text_processing' => '0',
  611. 'max_length' => '10',
  612. 'allowed_values' => '',
  613. 'allowed_values_php' => '',
  614. 'widget' => array(
  615. 'rows' => 5,
  616. 'size' => '10',
  617. 'default_value' => array(
  618. '0' => array(
  619. 'value' => '',
  620. '_error_element' => 'default_value_widget][field_fgcf_fiche_reference][0][value',
  621. ),
  622. ),
  623. 'default_value_php' => NULL,
  624. 'label' => 'Référence',
  625. 'weight' => '-2',
  626. 'description' => '',
  627. 'type' => 'text_textfield',
  628. 'module' => 'text',
  629. ),
  630. );
  631. // Exported field: field_fgcf_fiche_sanction
  632. $fields[] = array(
  633. 'field_name' => 'field_fgcf_fiche_sanction',
  634. 'type_name' => 'fgcf_fiche',
  635. 'display_settings' => array(
  636. 'weight' => '13',
  637. 'parent' => 'group_fgcf_fiche_meta',
  638. 'label' => array(
  639. 'format' => 'above',
  640. ),
  641. 'teaser' => array(
  642. 'format' => 'default',
  643. 'exclude' => 0,
  644. ),
  645. 'full' => array(
  646. 'format' => 'link',
  647. 'exclude' => 0,
  648. ),
  649. '4' => array(
  650. 'format' => 'default',
  651. 'exclude' => 0,
  652. ),
  653. '2' => array(
  654. 'format' => 'default',
  655. 'exclude' => 0,
  656. ),
  657. '3' => array(
  658. 'format' => 'default',
  659. 'exclude' => 0,
  660. ),
  661. 'token' => array(
  662. 'format' => 'default',
  663. 'exclude' => 0,
  664. ),
  665. ),
  666. 'widget_active' => '1',
  667. 'type' => 'content_taxonomy',
  668. 'required' => '0',
  669. 'multiple' => '1',
  670. 'module' => 'content_taxonomy',
  671. 'active' => '1',
  672. 'save_term_node' => 0,
  673. 'vid' => '4',
  674. 'parent' => '0',
  675. 'parent_php_code' => '',
  676. 'depth' => '',
  677. 'widget' => array(
  678. 'new_terms' => 'insert',
  679. 'extra_parent' => '0',
  680. 'maxlength' => '255',
  681. 'active_tags' => NULL,
  682. 'default_value' => NULL,
  683. 'default_value_php' => NULL,
  684. 'label' => 'Sanction',
  685. 'weight' => '13',
  686. 'description' => '',
  687. 'type' => 'content_taxonomy_autocomplete',
  688. 'module' => 'content_taxonomy_autocomplete',
  689. ),
  690. );
  691. // Exported field: field_fgcf_fiche_supports
  692. $fields[] = array(
  693. 'field_name' => 'field_fgcf_fiche_supports',
  694. 'type_name' => 'fgcf_fiche',
  695. 'display_settings' => array(
  696. 'weight' => '12',
  697. 'parent' => 'group_fgcf_fiche_meta',
  698. 'label' => array(
  699. 'format' => 'above',
  700. ),
  701. 'teaser' => array(
  702. 'format' => 'default',
  703. 'exclude' => 0,
  704. ),
  705. 'full' => array(
  706. 'format' => 'link',
  707. 'exclude' => 0,
  708. ),
  709. '4' => array(
  710. 'format' => 'default',
  711. 'exclude' => 0,
  712. ),
  713. '2' => array(
  714. 'format' => 'default',
  715. 'exclude' => 0,
  716. ),
  717. '3' => array(
  718. 'format' => 'default',
  719. 'exclude' => 0,
  720. ),
  721. 'token' => array(
  722. 'format' => 'default',
  723. 'exclude' => 0,
  724. ),
  725. ),
  726. 'widget_active' => '1',
  727. 'type' => 'content_taxonomy',
  728. 'required' => '0',
  729. 'multiple' => '1',
  730. 'module' => 'content_taxonomy',
  731. 'active' => '1',
  732. 'save_term_node' => 0,
  733. 'vid' => '3',
  734. 'parent' => '0',
  735. 'parent_php_code' => '',
  736. 'depth' => '',
  737. 'widget' => array(
  738. 'new_terms' => 'insert',
  739. 'extra_parent' => '0',
  740. 'maxlength' => '255',
  741. 'active_tags' => NULL,
  742. 'default_value' => NULL,
  743. 'default_value_php' => NULL,
  744. 'label' => 'Supports remis',
  745. 'weight' => '12',
  746. 'description' => '',
  747. 'type' => 'content_taxonomy_autocomplete',
  748. 'module' => 'content_taxonomy_autocomplete',
  749. ),
  750. );
  751. // Exported field: field_fgcf_prestataire_link
  752. $fields[] = array(
  753. 'field_name' => 'field_fgcf_prestataire_link',
  754. 'type_name' => 'fgcf_prestataire',
  755. 'display_settings' => array(
  756. 'weight' => '1',
  757. 'parent' => 'group_prestataire_branding',
  758. 'label' => array(
  759. 'format' => 'hidden',
  760. ),
  761. 'teaser' => array(
  762. 'format' => 'default',
  763. 'exclude' => 0,
  764. ),
  765. 'full' => array(
  766. 'format' => 'default',
  767. 'exclude' => 0,
  768. ),
  769. '4' => array(
  770. 'format' => 'default',
  771. 'exclude' => 0,
  772. ),
  773. '2' => array(
  774. 'format' => 'default',
  775. 'exclude' => 0,
  776. ),
  777. '3' => array(
  778. 'format' => 'default',
  779. 'exclude' => 0,
  780. ),
  781. 'token' => array(
  782. 'format' => 'default',
  783. 'exclude' => 0,
  784. ),
  785. ),
  786. 'widget_active' => '1',
  787. 'type' => 'link',
  788. 'required' => '0',
  789. 'multiple' => '0',
  790. 'module' => 'link',
  791. 'active' => '1',
  792. 'attributes' => array(
  793. 'target' => '_blank',
  794. 'rel' => 'nofollow',
  795. 'class' => '',
  796. 'title' => '[title]',
  797. ),
  798. 'display' => array(
  799. 'url_cutoff' => '80',
  800. ),
  801. 'url' => 0,
  802. 'title' => 'optional',
  803. 'title_value' => 'Site de [title]',
  804. 'enable_tokens' => 1,
  805. 'validate_url' => 1,
  806. 'widget' => array(
  807. 'default_value' => array(
  808. '0' => array(
  809. 'title' => '',
  810. 'url' => '',
  811. ),
  812. ),
  813. 'default_value_php' => NULL,
  814. 'label' => 'Site',
  815. 'weight' => '1',
  816. 'description' => '',
  817. 'type' => 'link',
  818. 'module' => 'link',
  819. ),
  820. );
  821. // Exported field: field_fgcf_prestataire_logo
  822. $fields[] = array(
  823. 'field_name' => 'field_fgcf_prestataire_logo',
  824. 'type_name' => 'fgcf_prestataire',
  825. 'display_settings' => array(
  826. 'weight' => 0,
  827. 'parent' => 'group_prestataire_branding',
  828. 'label' => array(
  829. 'format' => 'hidden',
  830. ),
  831. 'teaser' => array(
  832. 'format' => 'image_plain',
  833. 'exclude' => 0,
  834. ),
  835. 'full' => array(
  836. 'format' => 'image_plain',
  837. 'exclude' => 0,
  838. ),
  839. '4' => array(
  840. 'format' => 'image_plain',
  841. 'exclude' => 0,
  842. ),
  843. '2' => array(
  844. 'format' => 'image_plain',
  845. 'exclude' => 0,
  846. ),
  847. '3' => array(
  848. 'format' => 'image_plain',
  849. 'exclude' => 0,
  850. ),
  851. 'token' => array(
  852. 'format' => 'image_plain',
  853. 'exclude' => 0,
  854. ),
  855. ),
  856. 'widget_active' => '1',
  857. 'type' => 'filefield',
  858. 'required' => '0',
  859. 'multiple' => '0',
  860. 'module' => 'filefield',
  861. 'active' => '1',
  862. 'list_field' => '0',
  863. 'list_default' => 1,
  864. 'description_field' => '0',
  865. 'widget' => array(
  866. 'file_extensions' => 'png gif jpg jpeg',
  867. 'file_path' => '',
  868. 'progress_indicator' => 'bar',
  869. 'max_filesize_per_file' => '1M',
  870. 'max_filesize_per_node' => '',
  871. 'max_resolution' => '640x480',
  872. 'min_resolution' => 0,
  873. 'alt' => '',
  874. 'custom_alt' => 0,
  875. 'title' => '',
  876. 'custom_title' => 0,
  877. 'title_type' => 'textfield',
  878. 'default_image' => NULL,
  879. 'use_default_image' => 0,
  880. 'label' => 'Logo',
  881. 'weight' => 0,
  882. 'description' => '',
  883. 'type' => 'imagefield_widget',
  884. 'module' => 'imagefield',
  885. ),
  886. );
  887. // Exported field: field_fgcf_thematique_logo
  888. $fields[] = array(
  889. 'field_name' => 'field_fgcf_thematique_logo',
  890. 'type_name' => 'fgcf_thematique',
  891. 'display_settings' => array(
  892. 'weight' => '-3',
  893. 'parent' => '',
  894. 'label' => array(
  895. 'format' => 'hidden',
  896. ),
  897. 'teaser' => array(
  898. 'format' => 'image_plain',
  899. 'exclude' => 0,
  900. ),
  901. 'full' => array(
  902. 'format' => 'image_plain',
  903. 'exclude' => 0,
  904. ),
  905. '4' => array(
  906. 'format' => 'image_plain',
  907. 'exclude' => 0,
  908. ),
  909. '2' => array(
  910. 'format' => 'image_plain',
  911. 'exclude' => 0,
  912. ),
  913. '3' => array(
  914. 'format' => 'image_plain',
  915. 'exclude' => 0,
  916. ),
  917. 'token' => array(
  918. 'format' => 'image_plain',
  919. 'exclude' => 0,
  920. ),
  921. ),
  922. 'widget_active' => '1',
  923. 'type' => 'filefield',
  924. 'required' => '1',
  925. 'multiple' => '0',
  926. 'module' => 'filefield',
  927. 'active' => '1',
  928. 'list_field' => '0',
  929. 'list_default' => 1,
  930. 'description_field' => '0',
  931. 'widget' => array(
  932. 'file_extensions' => 'png gif jpg jpeg',
  933. 'file_path' => '',
  934. 'progress_indicator' => 'bar',
  935. 'max_filesize_per_file' => '',
  936. 'max_filesize_per_node' => '',
  937. 'max_resolution' => '60x60',
  938. 'min_resolution' => '0',
  939. 'alt' => '',
  940. 'custom_alt' => 0,
  941. 'title' => '',
  942. 'custom_title' => 0,
  943. 'title_type' => 'textfield',
  944. 'default_image' => NULL,
  945. 'use_default_image' => 0,
  946. 'label' => 'Icône',
  947. 'weight' => '-3',
  948. 'description' => '',
  949. 'type' => 'imagefield_widget',
  950. 'module' => 'imagefield',
  951. ),
  952. );
  953. // Translatables
  954. array(
  955. t('Contenu'),
  956. t('Durée'),
  957. t('Eligibilité DIF'),
  958. t('Format de cours'),
  959. t('Icône'),
  960. t('Logo'),
  961. t('Longueur'),
  962. t('Modalité'),
  963. t('Objectif'),
  964. t('Organisme de formation'),
  965. t('Public visé'),
  966. t('Référence'),
  967. t('Sanction'),
  968. t('Site'),
  969. t('Supports remis'),
  970. );
  971. return $fields;
  972. }
  973. /**
  974. * Helper to implementation of hook_fieldgroup_default_groups().
  975. */
  976. function _fgcf_fieldgroup_default_groups() {
  977. $groups = array();
  978. // Exported group: group_fgcf_fiche_meta
  979. $groups[] = array(
  980. 'group_type' => 'standard',
  981. 'type_name' => 'fgcf_fiche',
  982. 'group_name' => 'group_fgcf_fiche_meta',
  983. 'label' => 'Méta',
  984. 'settings' => array(
  985. 'form' => array(
  986. 'style' => 'fieldset',
  987. 'description' => '',
  988. ),
  989. 'display' => array(
  990. 'weight' => '2',
  991. 'label' => 'above',
  992. 'teaser' => array(
  993. 'format' => 'fieldset',
  994. 'exclude' => 1,
  995. ),
  996. 'full' => array(
  997. 'format' => 'fieldset',
  998. 'exclude' => 0,
  999. ),
  1000. 'description' => '',
  1001. '4' => array(
  1002. 'format' => 'fieldset',
  1003. 'exclude' => 0,
  1004. ),
  1005. '2' => array(
  1006. 'format' => 'fieldset',
  1007. 'exclude' => 0,
  1008. ),
  1009. '3' => array(
  1010. 'format' => 'fieldset',
  1011. 'exclude' => 0,
  1012. ),
  1013. 'token' => array(
  1014. 'format' => 'fieldset',
  1015. 'exclude' => 0,
  1016. ),
  1017. ),
  1018. ),
  1019. 'weight' => '2',
  1020. 'fields' => array(
  1021. '0' => 'field_fgcf_fiche_organisme',
  1022. '1' => 'field_fgcf_fiche_modalite',
  1023. '2' => 'field_fgcf_fiche_dif',
  1024. '3' => 'field_fgcf_fiche_heures',
  1025. '4' => 'field_fgcf_fiche_jours',
  1026. '5' => 'field_fgcf_fiche_format',
  1027. '6' => 'field_fgcf_fiche_supports',
  1028. '7' => 'field_fgcf_fiche_sanction',
  1029. '8' => 'field_fgcf_fiche_public',
  1030. ),
  1031. );
  1032. // Exported group: group_prestataire_branding
  1033. $groups[] = array(
  1034. 'group_type' => 'standard',
  1035. 'type_name' => 'fgcf_prestataire',
  1036. 'group_name' => 'group_prestataire_branding',
  1037. 'label' => 'Branding',
  1038. 'settings' => array(
  1039. 'form' => array(
  1040. 'style' => 'fieldset',
  1041. 'description' => '',
  1042. ),
  1043. 'display' => array(
  1044. 'description' => '',
  1045. 'teaser' => array(
  1046. 'format' => 'fieldset',
  1047. 'exclude' => 0,
  1048. ),
  1049. 'full' => array(
  1050. 'format' => 'fieldset',
  1051. 'exclude' => 0,
  1052. ),
  1053. '4' => array(
  1054. 'format' => 'fieldset',
  1055. 'exclude' => 0,
  1056. ),
  1057. '2' => array(
  1058. 'format' => 'fieldset',
  1059. 'exclude' => 0,
  1060. ),
  1061. '3' => array(
  1062. 'format' => 'fieldset',
  1063. 'exclude' => 0,
  1064. ),
  1065. 'token' => array(
  1066. 'format' => 'fieldset',
  1067. 'exclude' => 0,
  1068. ),
  1069. 'label' => 'hidden',
  1070. ),
  1071. ),
  1072. 'weight' => '-2',
  1073. 'fields' => array(
  1074. '0' => 'field_fgcf_prestataire_logo',
  1075. '1' => 'field_fgcf_prestataire_link',
  1076. ),
  1077. );
  1078. // Translatables
  1079. array(
  1080. t('Branding'),
  1081. t('Méta'),
  1082. );
  1083. return $groups;
  1084. }
  1085. /**
  1086. * Helper to implementation of hook_user_default_permissions().
  1087. */
  1088. function _fgcf_user_default_permissions() {
  1089. $permissions = array();
  1090. // Exported permission: access course catalog
  1091. $permissions[] = array(
  1092. 'name' => 'access course catalog',
  1093. 'roles' => array(
  1094. '0' => 'anonymous user',
  1095. '1' => 'authenticated user',
  1096. ),
  1097. );
  1098. return $permissions;
  1099. }