materio_publications.features.inc 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. /**
  3. * @file
  4. * materio_publications.features.inc
  5. */
  6. /**
  7. * Implements hook_ctools_plugin_api().
  8. */
  9. function materio_publications_ctools_plugin_api($module = NULL, $api = NULL) {
  10. if ($module == "strongarm" && $api == "strongarm") {
  11. return array("version" => "1");
  12. }
  13. }
  14. /**
  15. * Implements hook_image_default_styles().
  16. */
  17. function materio_publications_image_default_styles() {
  18. $styles = array();
  19. // Exported image style: publication-couv.
  20. $styles['publication-couv'] = array(
  21. 'label' => 'publication-couv',
  22. 'effects' => array(
  23. 15 => array(
  24. 'name' => 'image_scale',
  25. 'data' => array(
  26. 'width' => 480,
  27. 'height' => 480,
  28. 'upscale' => 1,
  29. ),
  30. 'weight' => 1,
  31. ),
  32. ),
  33. );
  34. return $styles;
  35. }
  36. /**
  37. * Implements hook_node_info().
  38. */
  39. function materio_publications_node_info() {
  40. $items = array(
  41. 'publication' => array(
  42. 'name' => t('Publication'),
  43. 'base' => 'node_content',
  44. 'description' => '',
  45. 'has_title' => '1',
  46. 'title_label' => t('Titre'),
  47. 'help' => '',
  48. ),
  49. );
  50. drupal_alter('node_info', $items);
  51. return $items;
  52. }