popsu_actualites.features.inc 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <?php
  2. /**
  3. * @file
  4. * popsu_actualites.features.inc
  5. */
  6. /**
  7. * Implements hook_ctools_plugin_api().
  8. */
  9. function popsu_actualites_ctools_plugin_api($module = NULL, $api = NULL) {
  10. if ($module == "boxes" && $api == "box") {
  11. return array("version" => "1");
  12. }
  13. if ($module == "context" && $api == "context") {
  14. return array("version" => "3");
  15. }
  16. if ($module == "field_group" && $api == "field_group") {
  17. return array("version" => "1");
  18. }
  19. if ($module == "page_manager" && $api == "pages_default") {
  20. return array("version" => "1");
  21. }
  22. if ($module == "strongarm" && $api == "strongarm") {
  23. return array("version" => "1");
  24. }
  25. }
  26. /**
  27. * Implements hook_views_api().
  28. */
  29. function popsu_actualites_views_api($module = NULL, $api = NULL) {
  30. return array("api" => "3.0");
  31. }
  32. /**
  33. * Implements hook_image_default_styles().
  34. */
  35. function popsu_actualites_image_default_styles() {
  36. $styles = array();
  37. // Exported image style: popsu-actu-home.
  38. $styles['popsu-actu-home'] = array(
  39. 'label' => 'popsu-actu-home',
  40. 'effects' => array(
  41. 15 => array(
  42. 'name' => 'image_scale_and_crop',
  43. 'data' => array(
  44. 'width' => 206,
  45. 'height' => 156,
  46. ),
  47. 'weight' => 1,
  48. ),
  49. ),
  50. );
  51. // Exported image style: popsu-actu-listing.
  52. $styles['popsu-actu-listing'] = array(
  53. 'label' => 'popsu-actu-listing',
  54. 'effects' => array(
  55. 16 => array(
  56. 'name' => 'image_scale_and_crop',
  57. 'data' => array(
  58. 'width' => 220,
  59. 'height' => 168,
  60. ),
  61. 'weight' => 1,
  62. ),
  63. ),
  64. );
  65. return $styles;
  66. }
  67. /**
  68. * Implements hook_node_info().
  69. */
  70. function popsu_actualites_node_info() {
  71. $items = array(
  72. 'popsu_actu' => array(
  73. 'name' => t('Actualités'),
  74. 'base' => 'node_content',
  75. 'description' => t('Ce type de contenu permet de créer des actualités sur la page d\'accueil du site.'),
  76. 'has_title' => '1',
  77. 'title_label' => t('Titre de l\'actualité'),
  78. 'help' => '',
  79. ),
  80. );
  81. drupal_alter('node_info', $items);
  82. return $items;
  83. }