materio_bookmarks.features.inc 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <?php
  2. /**
  3. * @file
  4. * materio_bookmarks.features.inc
  5. */
  6. /**
  7. * Implements hook_flag_default_flags().
  8. */
  9. function materio_bookmarks_flag_default_flags() {
  10. $flags = array();
  11. // Exported flag: "Bookmarks".
  12. $flags['bookmarks'] = array(
  13. 'entity_type' => 'node',
  14. 'title' => 'Bookmarks',
  15. 'global' => 0,
  16. 'types' => array(
  17. 0 => 'breve',
  18. 1 => 'materiau',
  19. ),
  20. 'flag_short' => 'Bookmark this',
  21. 'flag_long' => 'Add this post to your bookmarks',
  22. 'flag_message' => 'This post has been added to your bookmarks',
  23. 'unflag_short' => 'Unbookmark this',
  24. 'unflag_long' => 'Remove this post from your bookmarks',
  25. 'unflag_message' => 'This post has been removed from your bookmarks',
  26. 'unflag_denied_text' => '',
  27. 'link_type' => 'toggle',
  28. 'weight' => 0,
  29. 'show_in_links' => array(
  30. 'full' => 'full',
  31. 'bookmark' => 'bookmark',
  32. 'cardsmall' => 'cardsmall',
  33. 'cardmedium' => 'cardmedium',
  34. 'cardbig' => 'cardbig',
  35. 'cardfull' => 'cardfull',
  36. 'teaser' => 0,
  37. 'rss' => 0,
  38. 'diff_standard' => 0,
  39. 'print' => 0,
  40. 'email_plain' => 0,
  41. 'email_html' => 0,
  42. 'email_textalt' => 0,
  43. 'token' => 0,
  44. ),
  45. 'show_as_field' => 0,
  46. 'show_on_form' => 0,
  47. 'access_author' => '',
  48. 'show_contextual_link' => FALSE,
  49. 'i18n' => 0,
  50. 'module' => 'materio_bookmarks',
  51. 'locked' => array(
  52. 0 => 'name',
  53. ),
  54. 'api_version' => 3,
  55. );
  56. return $flags;
  57. }
  58. /**
  59. * Implements hook_image_default_styles().
  60. */
  61. function materio_bookmarks_image_default_styles() {
  62. $styles = array();
  63. // Exported image style: card-bookmark.
  64. $styles['card-bookmark'] = array(
  65. 'name' => 'card-bookmark',
  66. 'effects' => array(
  67. 5 => array(
  68. 'label' => 'Mise à l\'échelle et recadrage',
  69. 'help' => 'La mise à l\'échelle et le recadrage maintiendront les proportions originales de l\'image puis recadreront la dimension la plus large. C\'est très utile pour créer des vignettes carrées sans étirer les images.',
  70. 'effect callback' => 'image_scale_and_crop_effect',
  71. 'dimensions callback' => 'image_resize_dimensions',
  72. 'form callback' => 'image_resize_form',
  73. 'summary theme' => 'image_resize_summary',
  74. 'module' => 'image',
  75. 'name' => 'image_scale_and_crop',
  76. 'data' => array(
  77. 'width' => 50,
  78. 'height' => 70,
  79. ),
  80. 'weight' => 1,
  81. ),
  82. ),
  83. 'label' => 'card-bookmark',
  84. );
  85. return $styles;
  86. }