fgcf.features.inc 3.0 KB

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