function user_badges_form_user_profile_form_alter in User Badges 7.4
Implements hook_form_FORM_ID_alter().
File
- ./
user_badges.module, line 231 - Hooks and other stuff related to user badge.
Code
function user_badges_form_user_profile_form_alter(&$form, &$form_state) {
// We need to hide this field from user profile form.
// This should be modified only in provided UI for keeping consistency.
$form['user_badge_badges']['#access'] = FALSE;
}