Commons twitter url display override
Override the user-user-field_twitter_url's display settings, add profile_teaser display with groups_link_social_formatter. Change-Id: I3eeeb5bedb28101a4a59cb66b0577cec88d1b7d3
This commit is contained in:
parent
69f8fcef37
commit
287960bcb5
@ -7,6 +7,22 @@
|
||||
include_once 'groups_user_profile.features.inc';
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Code for the Groups User Profile feature.
|
||||
* Implements hook_field_default_field_instances_alter()
|
||||
*
|
||||
* Add profile teaser settings to user profile's twitter url
|
||||
* field.
|
||||
*/
|
||||
function groups_user_profile_field_default_field_instances_alter(&$fields) {
|
||||
if (isset($fields['user-user-field_twitter_url'])) {
|
||||
$field = &$fields['user-user-field_twitter_url'];
|
||||
$field['display']['profile_teaser'] = array(
|
||||
'label' => 'hidden',
|
||||
'module' => 'groups_social_link',
|
||||
'settings' => array(
|
||||
'provider' => 'twitter',
|
||||
),
|
||||
'type' => 'groups_social_link_formatter',
|
||||
'weight' => 2,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user