123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- <?php
- /**
- * @file
- * materio_bookmarks.features.inc
- */
- /**
- * Implements hook_flag_default_flags().
- */
- function materio_bookmarks_flag_default_flags() {
- $flags = array();
- // Exported flag: "Bookmarks".
- $flags['bookmarks'] = array(
- 'entity_type' => 'node',
- 'title' => 'Bookmarks',
- 'global' => '0',
- 'types' => array(
- 0 => 'breve',
- 1 => 'materiau',
- ),
- 'flag_short' => 'Bookmark this',
- 'flag_long' => 'Add this post to your bookmarks',
- 'flag_message' => 'This post has been added to your bookmarks',
- 'unflag_short' => 'Unbookmark this',
- 'unflag_long' => 'Remove this post from your bookmarks',
- 'unflag_message' => 'This post has been removed from your bookmarks',
- 'unflag_denied_text' => '',
- 'link_type' => 'toggle',
- 'weight' => 0,
- 'show_on_form' => 0,
- 'access_author' => '',
- 'show_contextual_link' => FALSE,
- 'show_on_page' => 1,
- 'show_on_teaser' => 0,
- 'i18n' => 0,
- 'module' => 'materio_bookmarks',
- 'locked' => array(
- 0 => 'name',
- ),
- 'api_version' => 3,
- );
- return $flags;
- }
- /**
- * Implements hook_image_default_styles().
- */
- function materio_bookmarks_image_default_styles() {
- $styles = array();
- // Exported image style: card-bookmark.
- $styles['card-bookmark'] = array(
- 'name' => 'card-bookmark',
- 'effects' => array(
- 5 => array(
- 'label' => 'Mise à l\'échelle et recadrage',
- '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.',
- 'effect callback' => 'image_scale_and_crop_effect',
- 'dimensions callback' => 'image_resize_dimensions',
- 'form callback' => 'image_resize_form',
- 'summary theme' => 'image_resize_summary',
- 'module' => 'image',
- 'name' => 'image_scale_and_crop',
- 'data' => array(
- 'width' => '50',
- 'height' => '70',
- ),
- 'weight' => '1',
- ),
- ),
- );
- return $styles;
- }
|