popsu_publications.features.inc 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <?php
  2. /**
  3. * @file
  4. * popsu_publications.features.inc
  5. */
  6. /**
  7. * Implements hook_ctools_plugin_api().
  8. */
  9. function popsu_publications_ctools_plugin_api() {
  10. list($module, $api) = func_get_args();
  11. if ($module == "context" && $api == "context") {
  12. return array("version" => "3");
  13. }
  14. list($module, $api) = func_get_args();
  15. if ($module == "field_group" && $api == "field_group") {
  16. return array("version" => "1");
  17. }
  18. list($module, $api) = func_get_args();
  19. if ($module == "page_manager" && $api == "pages_default") {
  20. return array("version" => "1");
  21. }
  22. list($module, $api) = func_get_args();
  23. if ($module == "strongarm" && $api == "strongarm") {
  24. return array("version" => "1");
  25. }
  26. }
  27. /**
  28. * Implements hook_views_api().
  29. */
  30. function popsu_publications_views_api() {
  31. return array("version" => "3.0");
  32. }
  33. /**
  34. * Implements hook_image_default_styles().
  35. */
  36. function popsu_publications_image_default_styles() {
  37. $styles = array();
  38. // Exported image style: popsu-publication-cover.
  39. $styles['popsu-publication-cover'] = array(
  40. 'name' => 'popsu-publication-cover',
  41. 'effects' => array(
  42. 7 => array(
  43. 'label' => 'Échelle',
  44. 'help' => 'La mise à l\'échelle maintiendra les proportions originales de l\'image. Si une seule dimension est précisée, l\'autre dimension sera calculée automatiquement.',
  45. 'effect callback' => 'image_scale_effect',
  46. 'dimensions callback' => 'image_scale_dimensions',
  47. 'form callback' => 'image_scale_form',
  48. 'summary theme' => 'image_scale_summary',
  49. 'module' => 'image',
  50. 'name' => 'image_scale',
  51. 'data' => array(
  52. 'width' => '102',
  53. 'height' => '',
  54. 'upscale' => 1,
  55. ),
  56. 'weight' => '1',
  57. ),
  58. ),
  59. );
  60. return $styles;
  61. }
  62. /**
  63. * Implements hook_node_info().
  64. */
  65. function popsu_publications_node_info() {
  66. $items = array(
  67. 'popsu_publication' => array(
  68. 'name' => t('Publication'),
  69. 'base' => 'node_content',
  70. 'description' => t('Ce type de contenu permet de créer une publication.'),
  71. 'has_title' => '1',
  72. 'title_label' => t('Titre de la publication'),
  73. 'help' => '',
  74. ),
  75. );
  76. return $items;
  77. }