popsu_villes.features.inc 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <?php
  2. /**
  3. * @file
  4. * popsu_villes.features.inc
  5. */
  6. /**
  7. * Implements hook_ctools_plugin_api().
  8. */
  9. function popsu_villes_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_villes_views_api($module = NULL, $api = NULL) {
  30. return array("api" => "3.0");
  31. }
  32. /**
  33. * Implements hook_image_default_styles().
  34. */
  35. function popsu_villes_image_default_styles() {
  36. $styles = array();
  37. // Exported image style: popsu-villes-grande-image.
  38. $styles['popsu-villes-grande-image'] = array(
  39. 'label' => 'popsu-villes-grande-image',
  40. 'effects' => array(
  41. 21 => array(
  42. 'name' => 'image_scale_and_crop',
  43. 'data' => array(
  44. 'width' => 485,
  45. 'height' => 324,
  46. ),
  47. 'weight' => 1,
  48. ),
  49. ),
  50. );
  51. // Exported image style: popsu-villes-listing-small.
  52. $styles['popsu-villes-listing-small'] = array(
  53. 'label' => 'popsu-villes-listing-small',
  54. 'effects' => array(
  55. 5 => array(
  56. 'name' => 'image_scale_and_crop',
  57. 'data' => array(
  58. 'width' => 101,
  59. 'height' => 87,
  60. ),
  61. 'weight' => 1,
  62. ),
  63. ),
  64. );
  65. return $styles;
  66. }
  67. /**
  68. * Implements hook_node_info().
  69. */
  70. function popsu_villes_node_info() {
  71. $items = array(
  72. 'popsu_ville' => array(
  73. 'name' => t('Fiche ville'),
  74. 'base' => 'node_content',
  75. 'description' => t('Ce type de contenu permet de créer la fiche de présentation d\'une ville pour un POPSU donné.'),
  76. 'has_title' => '1',
  77. 'title_label' => t('Nom de la ville'),
  78. 'help' => '',
  79. ),
  80. );
  81. drupal_alter('node_info', $items);
  82. return $items;
  83. }