You are here

function token_custom_delete_confirm_form in Custom Tokens 7.2

Same name and namespace in other branches
  1. 7 token_custom.admin.inc \token_custom_delete_confirm_form()

Confirm custom token's delete action.

Parameters

array $form: The delete token form.

array $form_state: Form state array

object $token: The token object to delete.

Return value

array The complete form.

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

File

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

Code

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