You are here

function group_multiple_delete_confirm_submit in Group 7

Multiple group deletion submit callback.

1 string reference to 'group_multiple_delete_confirm_submit'
group_multiple_delete_confirm in admin/group.inc
Multiple group deletion confirmation form.

File

admin/group.inc, line 339
Group overview admin UI.

Code

function group_multiple_delete_confirm_submit($form, &$form_state) {
  if ($form_state['values']['confirm']) {
    $gids = array_keys($form_state['values']['groups']);
    $count = count($gids);
    group_delete_multiple($gids);
    watchdog('groups', 'Deleted @count groups.', array(
      '@count' => $count,
    ));
    drupal_set_message(format_plural($count, 'Deleted 1 group.', 'Deleted @count groups.'));
  }
}