function token_custom_delete_confirm_form in Custom Tokens 7
Same name and namespace in other branches
- 7.2 token_custom.admin.inc \token_custom_delete_confirm_form()
Confirm custom token's delete action.
_state
Parameters
$form:
null $token:
Return value
array
1 string reference to 'token_custom_delete_confirm_form'
- token_custom_menu in ./
token_custom.module - Implementation of hook_menu().
File
- ./
token_custom.admin.inc, line 205 - 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;
$caption = '<p>' . t('This action cannot be undone.') . '</p>';
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', $caption, t('Delete'), t('Cancel'));
}