function path_admin_delete in Drupal 4
Same name and namespace in other branches
- 5 modules/path/path.module \path_admin_delete()
- 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.module - Execute URL alias deletion
File
- modules/
path.module, line 126 - 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.'));
}