You are here

function invite_delete_form in Invite 7.4

Delete confirmation form.

_state

Parameters

$form:

Invite $invite:

Return value

array

1 string reference to 'invite_delete_form'
invite_menu in ./invite.module
Implements hook_menu().

File

includes/invite.admin.inc, line 276

Code

function invite_delete_form($form, &$form_state, $invite) {
  $form_state['invite'] = $invite;

  // Always provide entity id in the same form key as in the entity edit form.
  $form['invite_type_id'] = array(
    '#type' => 'value',
    '#value' => entity_id('invite', $invite),
  );
  $invite_uri = entity_uri('invite', $invite);
  return confirm_form($form, t('Are you sure you want to delete %title?', array(
    '%title' => entity_label('invite', $invite),
  )), $invite_uri['path'], t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}