You are here

function blockgroup_delete_confirm_submit in Block Group 7

Same name and namespace in other branches
  1. 7.2 blockgroup.admin.inc \blockgroup_delete_confirm_submit()

Form submission handler for blockgroup_delete_confirm().

See also

blockgroup_delete_confirm()

File

./blockgroup.admin.inc, line 77
Administrative interface for block group module.

Code

function blockgroup_delete_confirm_submit($form, &$form_state) {
  $blockgroup = $form_state['blockgroup'];
  blockgroup_delete($blockgroup);
  drupal_set_message(t('The block group %title has been removed.', array(
    '%title' => $blockgroup->title,
  )));
  $form_state['redirect'] = 'admin/structure/block';
}