You are here

function path_admin_delete in Drupal 6

Same name and namespace in other branches
  1. 4 modules/path.module \path_admin_delete()
  2. 5 modules/path/path.module \path_admin_delete()

Post-confirmation; delete an URL alias.

1 call to path_admin_delete()
path_admin_delete_confirm_submit in modules/path/path.admin.inc
Execute URL alias deletion

File

modules/path/path.module, line 79
Enables users to rename URLs.

Code

function path_admin_delete($pid = 0) {
  db_query('DELETE FROM {url_alias} WHERE pid = %d', $pid);
  drupal_set_message(t('The alias has been deleted.'));
}