You are here

function invite_delete_form_submit in Invite 7.4

Delete form submit handler.

_state

Parameters

$form:

File

includes/invite.admin.inc, line 296

Code

function invite_delete_form_submit($form, &$form_state) {
  $invite = $form_state['invite'];
  invite_delete($invite);
  drupal_set_message(t('%title deleted.', array(
    '%title' => entity_label('invite', $invite),
  )));
  $form_state['redirect'] = '<front>';
}