fgcf.features.inc 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <?php
  2. /**
  3. * Implementation of hook_imagecache_default_presets().
  4. */
  5. function fgcf_imagecache_default_presets() {
  6. $items = array(
  7. 'fgcf_theme_logo_liste' => array(
  8. 'presetname' => 'fgcf_theme_logo_liste',
  9. 'actions' => array(
  10. '0' => array(
  11. 'weight' => '0',
  12. 'module' => 'imagecache',
  13. 'action' => 'imagecache_scale',
  14. 'data' => array(
  15. 'width' => '60',
  16. 'height' => '60',
  17. 'upscale' => 1,
  18. ),
  19. ),
  20. ),
  21. ),
  22. 'prestataire_logo_full' => array(
  23. 'presetname' => 'prestataire_logo_full',
  24. 'actions' => array(
  25. '0' => array(
  26. 'weight' => '0',
  27. 'module' => 'imagecache',
  28. 'action' => 'imagecache_scale',
  29. 'data' => array(
  30. 'width' => '200',
  31. 'height' => '200',
  32. 'upscale' => 1,
  33. ),
  34. ),
  35. ),
  36. ),
  37. 'prestataire_logo_liste' => array(
  38. 'presetname' => 'prestataire_logo_liste',
  39. 'actions' => array(
  40. '0' => array(
  41. 'weight' => '0',
  42. 'module' => 'imagecache',
  43. 'action' => 'imagecache_scale',
  44. 'data' => array(
  45. 'width' => '160',
  46. 'height' => '48',
  47. 'upscale' => 1,
  48. ),
  49. ),
  50. ),
  51. ),
  52. );
  53. return $items;
  54. }
  55. /**
  56. * Implementation of hook_node_info().
  57. */
  58. function fgcf_node_info() {
  59. $items = array(
  60. 'fgcf_fiche' => array(
  61. 'name' => t('FG: Fiche de formation'),
  62. 'module' => 'features',
  63. 'description' => t('Une fiche de formation décrit de manière structurée une formation proposée au personnel France Galop'),
  64. 'has_title' => '1',
  65. 'title_label' => t('Titre'),
  66. 'has_body' => '0',
  67. 'body_label' => '',
  68. 'min_word_count' => '0',
  69. 'help' => '',
  70. ),
  71. 'fgcf_prestataire' => array(
  72. 'name' => t('FG: Prestataire de formation'),
  73. 'module' => 'features',
  74. 'description' => t('Un prestataire est une entité proposant des cours au catalogue de France Galop'),
  75. 'has_title' => '1',
  76. 'title_label' => t('Entité'),
  77. 'has_body' => '1',
  78. 'body_label' => t('Description'),
  79. 'min_word_count' => '0',
  80. 'help' => '',
  81. ),
  82. 'fgcf_thematique' => array(
  83. 'name' => t('FG Thème de formation'),
  84. 'module' => 'features',
  85. 'description' => t('Théme de formation, correspondant à un terme de premier niveau du vocabulaire des thèmes.'),
  86. 'has_title' => '1',
  87. 'title_label' => t('Titre'),
  88. 'has_body' => '1',
  89. 'body_label' => t('Description'),
  90. 'min_word_count' => '0',
  91. 'help' => '',
  92. ),
  93. );
  94. return $items;
  95. }