materio_content_types.features.inc 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <?php
  2. /**
  3. * @file
  4. * materio_content_types.features.inc
  5. */
  6. /**
  7. * Implements hook_ctools_plugin_api().
  8. */
  9. function materio_content_types_ctools_plugin_api($module = NULL, $api = NULL) {
  10. if ($module == "cer" && $api == "default_cer_presets") {
  11. return array("version" => "1");
  12. }
  13. if ($module == "field_group" && $api == "field_group") {
  14. return array("version" => "1");
  15. }
  16. if ($module == "strongarm" && $api == "strongarm") {
  17. return array("version" => "1");
  18. }
  19. }
  20. /**
  21. * Implements hook_views_api().
  22. */
  23. function materio_content_types_views_api($module = NULL, $api = NULL) {
  24. return array("api" => "3.0");
  25. }
  26. /**
  27. * Implements hook_image_default_styles().
  28. */
  29. function materio_content_types_image_default_styles() {
  30. $styles = array();
  31. // Exported image style: card-big.
  32. $styles['card-big'] = array(
  33. 'effects' => array(
  34. 3 => array(
  35. 'name' => 'image_scale_and_crop',
  36. 'data' => array(
  37. 'width' => 430,
  38. 'height' => 340,
  39. ),
  40. 'weight' => 1,
  41. ),
  42. ),
  43. 'label' => 'card-big',
  44. );
  45. // Exported image style: card-full.
  46. $styles['card-full'] = array(
  47. 'effects' => array(
  48. 4 => array(
  49. 'name' => 'image_scale_and_crop',
  50. 'data' => array(
  51. 'width' => 425,
  52. 'height' => 610,
  53. ),
  54. 'weight' => 1,
  55. ),
  56. ),
  57. 'label' => 'card-full',
  58. );
  59. // Exported image style: card-medium.
  60. $styles['card-medium'] = array(
  61. 'effects' => array(
  62. 6 => array(
  63. 'name' => 'image_scale_and_crop',
  64. 'data' => array(
  65. 'width' => 210,
  66. 'height' => 295,
  67. ),
  68. 'weight' => 1,
  69. ),
  70. ),
  71. 'label' => 'card-medium',
  72. );
  73. // Exported image style: card-small.
  74. $styles['card-small'] = array(
  75. 'effects' => array(
  76. 2 => array(
  77. 'name' => 'image_scale_and_crop',
  78. 'data' => array(
  79. 'width' => 100,
  80. 'height' => 140,
  81. ),
  82. 'weight' => 1,
  83. ),
  84. ),
  85. 'label' => 'card-small',
  86. );
  87. return $styles;
  88. }
  89. /**
  90. * Implements hook_node_info().
  91. */
  92. function materio_content_types_node_info() {
  93. $items = array(
  94. 'breve' => array(
  95. 'name' => t('Breve'),
  96. 'base' => 'node_content',
  97. 'description' => '',
  98. 'has_title' => '1',
  99. 'title_label' => t('Titre'),
  100. 'help' => '',
  101. ),
  102. 'company' => array(
  103. 'name' => t('Company'),
  104. 'base' => 'node_content',
  105. 'description' => '',
  106. 'has_title' => '1',
  107. 'title_label' => t('Company'),
  108. 'help' => '',
  109. ),
  110. 'materiau' => array(
  111. 'name' => t('Materiau'),
  112. 'base' => 'node_content',
  113. 'description' => '',
  114. 'has_title' => '1',
  115. 'title_label' => t('Nom'),
  116. 'help' => '',
  117. ),
  118. 'page' => array(
  119. 'name' => t('Page'),
  120. 'base' => 'node_content',
  121. 'description' => t('Use this content type to add static pages like "about" "contact" etc'),
  122. 'has_title' => '1',
  123. 'title_label' => t('Title'),
  124. 'help' => '',
  125. ),
  126. 'webform' => array(
  127. 'name' => t('Webform'),
  128. 'base' => 'node_content',
  129. 'description' => t('Create a new form or questionnaire accessible to users. Submission results and statistics are recorded and accessible to privileged users.'),
  130. 'has_title' => '1',
  131. 'title_label' => t('Title'),
  132. 'help' => '',
  133. ),
  134. );
  135. drupal_alter('node_info', $items);
  136. return $items;
  137. }