materio_bookmarks.features.inc 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. 'effects' => array(
  66. 5 => array(
  67. 'name' => 'image_scale_and_crop',
  68. 'data' => array(
  69. 'width' => 50,
  70. 'height' => 70,
  71. ),
  72. 'weight' => 1,
  73. ),
  74. ),
  75. 'label' => 'card-bookmark',
  76. );
  77. return $styles;
  78. }