function user_badges_field_extra_fields_alter in User Badges 7.2
Same name and namespace in other branches
- 7 user_badges.module \user_badges_field_extra_fields_alter()
- 7.3 user_badges.module \user_badges_field_extra_fields_alter()
Implements hook_field_extra_fields().
File
- ./
user_badges.module, line 1353 - @brief User Badges module file
Code
function user_badges_field_extra_fields_alter(&$info) {
foreach (node_type_get_types() as $node_type) {
if (!isset($info['node'][$node_type->type]['form']['badges'])) {
$info['node'][$node_type->type]['form']['badges'] = array(
'label' => t('User Badges'),
'description' => t('User badges display'),
'weight' => 30,
);
}
}
}