Add missing user profile avatar to groups user profile module
Fix of profile view rendering issue. Change-Id: I5d52fd30d8b97b1d6fb4f39e39442c44ca807a40
This commit is contained in:
parent
b2ae6ce838
commit
69f8fcef37
@ -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;
|
||||
}
|
@ -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
|
||||
|
@ -1,4 +1,10 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* Code for the Groups User Profile feature.
|
||||
*/
|
||||
|
||||
include_once 'groups_user_profile.features.inc';
|
||||
|
||||
/**
|
||||
* @file
|
||||
|
Loading…
Reference in New Issue
Block a user