From 38a1300df2005f9f054f19d8d2bd41518a8e7ad8 Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Fri, 22 Jun 2007 05:44:21 +0000 Subject: #147723: Deletion API (by hunmonk). Woop woop. --- modules/path/path.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/path/path.module') diff --git a/modules/path/path.module b/modules/path/path.module index b932a1b66..9900d6641 100644 --- a/modules/path/path.module +++ b/modules/path/path.module @@ -127,12 +127,12 @@ function path_admin_delete($pid = 0) { function path_set_alias($path = NULL, $alias = NULL, $pid = NULL, $language = '') { if ($path && !$alias) { // Delete based on path - db_query("DELETE FROM {url_alias} WHERE src = '%s' AND language = '%s'", $path, $language); + drupal_delete_add_query("DELETE FROM {url_alias} WHERE src = '%s' AND language = '%s'", $path, $language); drupal_clear_path_cache(); } else if (!$path && $alias) { // Delete based on alias - db_query("DELETE FROM {url_alias} WHERE dst = '%s' AND language = '%s'", $alias, $language); + drupal_delete_add_query("DELETE FROM {url_alias} WHERE dst = '%s' AND language = '%s'", $alias, $language); drupal_clear_path_cache(); } else if ($path && $alias) { -- cgit v1.2.3