debut_media.features.inc 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <?php
  2. /**
  3. * @file
  4. * debut_media.features.inc
  5. */
  6. /**
  7. * Implementation of hook_ctools_plugin_api().
  8. */
  9. function debut_media_ctools_plugin_api() {
  10. list($module, $api) = func_get_args();
  11. if ($module == "context" && $api == "context") {
  12. return array("version" => "3");
  13. }
  14. }
  15. /**
  16. * Implementation of hook_views_api().
  17. */
  18. function debut_media_views_api() {
  19. return array(
  20. 'api' => 3,
  21. );
  22. }
  23. /**
  24. * Implementation of hook_image_default_styles().
  25. */
  26. function debut_media_image_default_styles() {
  27. $styles = array();
  28. // Exported image style: medium_large
  29. $styles['medium_large'] = array(
  30. 'name' => 'medium_large',
  31. 'effects' => array(
  32. 2 => array(
  33. 'label' => 'Scale',
  34. 'help' => 'Scaling will maintain the aspect-ratio of the original image. If only a single dimension is specified, the other dimension will be calculated.',
  35. 'effect callback' => 'image_scale_effect',
  36. 'form callback' => 'image_scale_form',
  37. 'summary theme' => 'image_scale_summary',
  38. 'module' => 'image',
  39. 'name' => 'image_scale',
  40. 'data' => array(
  41. 'width' => '360',
  42. 'height' => '',
  43. 'upscale' => 0,
  44. ),
  45. 'weight' => '1',
  46. ),
  47. ),
  48. );
  49. // Exported image style: small_square_thumbnail
  50. $styles['small_square_thumbnail'] = array(
  51. 'name' => 'small_square_thumbnail',
  52. 'effects' => array(
  53. 3 => array(
  54. 'label' => 'Scale and crop',
  55. 'help' => 'Scale and crop will maintain the aspect-ratio of the original image, then crop the larger dimension. This is most useful for creating perfectly square thumbnails without stretching the image.',
  56. 'effect callback' => 'image_scale_and_crop_effect',
  57. 'form callback' => 'image_resize_form',
  58. 'summary theme' => 'image_resize_summary',
  59. 'module' => 'image',
  60. 'name' => 'image_scale_and_crop',
  61. 'data' => array(
  62. 'width' => '100',
  63. 'height' => '100',
  64. ),
  65. 'weight' => '1',
  66. ),
  67. ),
  68. );
  69. return $styles;
  70. }