You are here

function token_custom_delete_form_submit in Custom Tokens 5

Same name and namespace in other branches
  1. 6 token_custom.module \token_custom_delete_form_submit()

File

./token_custom.module, line 279

Code

function token_custom_delete_form_submit($form_id, $form_values) {
  $token = _token_custom_load($form_values['token_custom_tkid']);
  db_query("DELETE FROM {token_custom} WHERE tkid = %d", $form_values['token_custom_tkid']);
  drupal_set_message(t('%id deleted.', array(
    '%id' => $token->id,
  )));
  return 'admin/build/tokens';
}