You are here

function token_custom_delete_form in Custom Tokens 5

Same name and namespace in other branches
  1. 6 token_custom.module \token_custom_delete_form()
1 string reference to 'token_custom_delete_form'
token_custom_delete_page in ./token_custom.module

File

./token_custom.module, line 286

Code

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