groups/modules/commons/commons_follow/commons_follow.features.inc
Marton Kiss 8ac59801be Refactor commons build process
Update commons modules to release 7.12, and move the codebase under
modules/commons instead of constant fetching from remote repository.
The commons.make file removed so it is not required to rebuild
groups distribution.

Change-Id: I3be393ba1af34427e2915b18ab1ad718fd4e54db
2014-05-28 15:58:33 +02:00

47 lines
1.2 KiB
PHP

<?php
/**
* @file
* commons_follow.features.inc
*/
/**
* Implements hook_ctools_plugin_api().
*/
function commons_follow_ctools_plugin_api($module = NULL, $api = NULL) {
if ($module == "strongarm" && $api == "strongarm") {
return array("version" => "1");
}
}
/**
* Implements hook_image_default_styles().
*/
function commons_follow_image_default_styles() {
$styles = array();
// Exported image style: 50x50_avatar.
$styles['50x50_avatar'] = array(
'label' => '50x50_avatar',
'name' => '50x50_avatar',
'effects' => array(
3 => 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' => 50,
'height' => 50,
),
'weight' => 1,
),
),
);
return $styles;
}