You are here

function path_admin_delete in Drupal 5

Same name and namespace in other branches
  1. 4 modules/path.module \path_admin_delete()
  2. 6 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.module
Execute URL alias deletion

File

modules/path/path.module, line 119
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.'));
}