You are here

function user_badges_field_extra_fields_alter in User Badges 7

Same name and namespace in other branches
  1. 7.2 user_badges.module \user_badges_field_extra_fields_alter()
  2. 7.3 user_badges.module \user_badges_field_extra_fields_alter()

Implements hook_field_extra_fields().

File

./user_badges.module, line 1432
@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,
      );
    }
  }
}