You are here

bear_necessities.features.inc in Bear 7.2

Same filename and directory in other branches
  1. 7 modules/bear_necessities/bear_necessities.features.inc

File

modules/bear_necessities/bear_necessities.features.inc
View source
<?php

/**
 * @file
 * bear_necessities.features.inc
 */

/**
 * Implements hook_default_asset_type().
 */
function bear_necessities_default_asset_type() {
  $items = array();
  $items['embed'] = entity_import('asset_type', '{
    "type" : "embed",
    "name" : "Embed",
    "icon" : "AddVideo.png",
    "description" : "Embed via URL from anything supported by http:\\/\\/embed.ly\\/providers",
    "help" : "Paste a URL from any provider supported by http:\\/\\/embed.ly\\/providers",
    "weight" : "0",
    "locked" : "0",
    "uuid" : ""
  }');
  return $items;
}

/**
 * Implements hook_ctools_plugin_api().
 */
function bear_necessities_ctools_plugin_api($module = NULL, $api = NULL) {
  if ($module == "breakpoints" && $api == "default_breakpoint_group") {
    return array(
      "version" => "1",
    );
  }
  if ($module == "breakpoints" && $api == "default_breakpoints") {
    return array(
      "version" => "1",
    );
  }
  if ($module == "environment_indicator" && $api == "default_environment_indicator_environments") {
    return array(
      "version" => "1",
    );
  }
  if ($module == "file_entity" && $api == "file_default_displays") {
    return array(
      "version" => "1",
    );
  }
  if ($module == "linkit" && $api == "linkit_profiles") {
    return array(
      "version" => "1",
    );
  }
  if ($module == "page_manager" && $api == "pages_default") {
    return array(
      "version" => "1",
    );
  }
  if ($module == "picture" && $api == "default_picture_mapping") {
    return array(
      "version" => "2",
    );
  }
  if ($module == "strongarm" && $api == "strongarm") {
    return array(
      "version" => "1",
    );
  }
}

/**
 * Implements hook_image_default_styles().
 */
function bear_necessities_image_default_styles() {
  $styles = array();

  // Exported image style: bear_full_1x.
  $styles['bear_full_1x'] = array(
    'name' => 'bear_full_1x',
    'label' => 'bear_full_1x',
    'effects' => array(
      1 => array(
        'label' => 'Scale',
        'help' => 'Scaling will maintain the aspect-ratio of the original image. If only a single dimension is specified, the other dimension will be calculated.',
        'effect callback' => 'image_scale_effect',
        'dimensions callback' => 'image_scale_dimensions',
        'form callback' => 'image_scale_form',
        'summary theme' => 'image_scale_summary',
        'module' => 'image',
        'name' => 'image_scale',
        'data' => array(
          'width' => 1280,
          'height' => '',
          'upscale' => 0,
        ),
        'weight' => 1,
      ),
    ),
  );

  // Exported image style: bear_mobile_1_5x.
  $styles['bear_mobile_1_5x'] = array(
    'name' => 'bear_mobile_1_5x',
    'label' => 'bear_mobile_1_5x',
    'effects' => array(
      2 => array(
        'label' => 'Scale',
        'help' => 'Scaling will maintain the aspect-ratio of the original image. If only a single dimension is specified, the other dimension will be calculated.',
        'effect callback' => 'image_scale_effect',
        'dimensions callback' => 'image_scale_dimensions',
        'form callback' => 'image_scale_form',
        'summary theme' => 'image_scale_summary',
        'module' => 'image',
        'name' => 'image_scale',
        'data' => array(
          'width' => 1280,
          'height' => '',
          'upscale' => 0,
        ),
        'weight' => 1,
      ),
    ),
  );

  // Exported image style: bear_mobile_1x.
  $styles['bear_mobile_1x'] = array(
    'name' => 'bear_mobile_1x',
    'label' => 'bear_mobile_1x',
    'effects' => array(
      3 => array(
        'label' => 'Scale',
        'help' => 'Scaling will maintain the aspect-ratio of the original image. If only a single dimension is specified, the other dimension will be calculated.',
        'effect callback' => 'image_scale_effect',
        'dimensions callback' => 'image_scale_dimensions',
        'form callback' => 'image_scale_form',
        'summary theme' => 'image_scale_summary',
        'module' => 'image',
        'name' => 'image_scale',
        'data' => array(
          'width' => 1280,
          'height' => '',
          'upscale' => 0,
        ),
        'weight' => 1,
      ),
    ),
  );

  // Exported image style: bear_mobile_2x.
  $styles['bear_mobile_2x'] = array(
    'name' => 'bear_mobile_2x',
    'label' => 'bear_mobile_2x',
    'effects' => array(
      4 => array(
        'label' => 'Scale',
        'help' => 'Scaling will maintain the aspect-ratio of the original image. If only a single dimension is specified, the other dimension will be calculated.',
        'effect callback' => 'image_scale_effect',
        'dimensions callback' => 'image_scale_dimensions',
        'form callback' => 'image_scale_form',
        'summary theme' => 'image_scale_summary',
        'module' => 'image',
        'name' => 'image_scale',
        'data' => array(
          'width' => 1280,
          'height' => '',
          'upscale' => 0,
        ),
        'weight' => 1,
      ),
    ),
  );

  // Exported image style: bear_narrow_1x.
  $styles['bear_narrow_1x'] = array(
    'name' => 'bear_narrow_1x',
    'label' => 'bear_narrow_1x',
    'effects' => array(
      5 => array(
        'label' => 'Scale',
        'help' => 'Scaling will maintain the aspect-ratio of the original image. If only a single dimension is specified, the other dimension will be calculated.',
        'effect callback' => 'image_scale_effect',
        'dimensions callback' => 'image_scale_dimensions',
        'form callback' => 'image_scale_form',
        'summary theme' => 'image_scale_summary',
        'module' => 'image',
        'name' => 'image_scale',
        'data' => array(
          'width' => 1280,
          'height' => '',
          'upscale' => 0,
        ),
        'weight' => 1,
      ),
    ),
  );

  // Exported image style: slideshow.
  $styles['slideshow'] = array(
    'name' => 'slideshow',
    'label' => 'slideshow',
    'effects' => array(
      1 => array(
        'label' => 'Scale and crop',
        '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.',
        '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' => 960,
          'height' => 300,
        ),
        'weight' => 1,
      ),
    ),
  );
  return $styles;
}