Add missing user profile avatar to groups user profile module

Fix of profile view rendering issue.

Change-Id: I5d52fd30d8b97b1d6fb4f39e39442c44ca807a40
This commit is contained in:
Marton Kiss 2015-08-23 08:53:00 +02:00
parent b2ae6ce838
commit 69f8fcef37
3 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,29 @@
<?php
/**
* @file
* groups_user_profile.features.inc
*/
/**
* Implements hook_image_default_styles().
*/
function groups_user_profile_image_default_styles() {
$styles = array();
// Exported image style: 300x300_avatar.
$styles['300x300_avatar'] = array(
'label' => '300x300 Profile',
'effects' => array(
2 => array(
'name' => 'image_scale_and_crop',
'data' => array(
'width' => 300,
'height' => 300,
),
'weight' => 1,
),
),
);
return $styles;
}

View File

@ -6,7 +6,9 @@ project = groups
dependencies[] = ctools
dependencies[] = features
dependencies[] = groups_social_link
dependencies[] = image
dependencies[] = link
features[features_api][] = api:2
features[field_base][] = field_weibo_url
features[field_instance][] = user-user-field_weibo_url
features[image][] = 300x300_avatar

View File

@ -1,4 +1,10 @@
<?php
/**
* @file
* Code for the Groups User Profile feature.
*/
include_once 'groups_user_profile.features.inc';
/**
* @file