You are here

function token_custom_edit_page in Custom Tokens 5

1 string reference to 'token_custom_edit_page'
token_custom_menu in ./token_custom.module
Implementation of hook_menu().

File

./token_custom.module, line 168

Code

function token_custom_edit_page($tkid) {
  if ($_POST['op'] == t('Delete')) {

    // Note: we redirect from node/nid/edit to node/nid/delete to make the tabs disappear.
    if ($_REQUEST['destination']) {
      $destination = drupal_get_destination();
      unset($_REQUEST['destination']);
    }
    drupal_goto('admin/build/tokens/delete/' . $tkid, $destination);
  }
  return drupal_get_form('token_custom_edit_form', $tkid);
}