You are here

function user_badges_remove_badge_action_submit in User Badges 6

Same name and namespace in other branches
  1. 6.2 user_badges.module \user_badges_remove_badge_action_submit()
  2. 7.4 user_badges.actions.inc \user_badges_remove_badge_action_submit()
  3. 7 user_badges.actions.inc \user_badges_remove_badge_action_submit()
  4. 7.2 user_badges.actions.inc \user_badges_remove_badge_action_submit()
  5. 7.3 user_badges.actions.inc \user_badges_remove_badge_action_submit()

File

./user_badges.module, line 1261
@brief User Badges module file

Code

function user_badges_remove_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,
  );
}