function user_badges_add_badge_action_submit in User Badges 7.4
Same name and namespace in other branches
- 6.2 user_badges.module \user_badges_add_badge_action_submit()
- 6 user_badges.module \user_badges_add_badge_action_submit()
- 7 user_badges.actions.inc \user_badges_add_badge_action_submit()
- 7.2 user_badges.actions.inc \user_badges_add_badge_action_submit()
- 7.3 user_badges.actions.inc \user_badges_add_badge_action_submit()
Submit handler for user_badges_add_badge_action.
See also
File
- ./
user_badges.actions.inc, line 80 - Actions for User Badges module.
Code
function user_badges_add_badge_action_submit($form, $form_state) {
$badges = array();
foreach ($form_state['values']['badges'] as $badge => $set) {
if ($set) {
$badges[$badge] = $badge;
}
}
return array(
'badges' => $badges,
);
}