You are here

function group_membership_multiple_delete_confirm_submit in Group 7

Multiple group deletion submit callback.

1 string reference to 'group_membership_multiple_delete_confirm_submit'
group_membership_multiple_delete_confirm in admin/group_membership.inc
Multiple group membership deletion confirmation form.

File

admin/group_membership.inc, line 373
Group membership overview admin UI.

Code

function group_membership_multiple_delete_confirm_submit($form, &$form_state) {
  if ($form_state['values']['confirm']) {
    $mids = array_keys($form_state['values']['members']);
    $count = count($mids);
    group_membership_delete_multiple($mids);
    watchdog('group', 'Removed @count members.', array(
      '@count' => $count,
    ));
    drupal_set_message(format_plural($count, 'Removed 1 member.', 'Removed @count members.'));
  }
}