You are here

function token_custom_delete_form in Custom Tokens 6

Same name and namespace in other branches
  1. 5 token_custom.module \token_custom_delete_form()
1 string reference to 'token_custom_delete_form'
token_custom_menu in ./token_custom.module
Implementation of hook_menu().

File

./token_custom.module, line 289
The Token Custom module.

Code

function token_custom_delete_form(&$form_state, $token_custom) {
  $form['token_custom_tkid'] = array(
    '#type' => 'value',
    '#value' => $token_custom->tkid,
  );
  return confirm_form($form, t('Are you sure you want to delete %id?', array(
    '%id' => $token_custom->id,
  )), isset($_GET['destination']) ? $_GET['destination'] : 'admin/build/tokens', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}