You are here

function token_custom_type_delete_confirm_form in Custom Tokens 7.2

Confirm custom token type's delete action.

Parameters

array $form: The delete token form.

array $form_state: Form state array

object $token_type: The token type to delete.

Return value

array The complete form.

1 string reference to 'token_custom_type_delete_confirm_form'
token_custom_menu in ./token_custom.module
Implements of hook_menu().

File

./token_custom.admin.inc, line 446
Page callbacks and admin forms of the token_custom module.

Code

function token_custom_type_delete_confirm_form($form, &$form_state, $token_type) {
  $form_state['token_custom']['token_type'] = $token_type;
  return confirm_form($form, t('Are you sure you want to delete token type <em>@machine_name</em> ?', array(
    '@machine_name' => $token_type->machine_name,
  )), 'admin/structure/token-custom', NULL, t('Delete'), t('Cancel'));
}