summaryrefslogtreecommitdiff
path: root/modules/taxonomy/taxonomy.api.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-01-13 22:25:13 +0000
committerDries Buytaert <dries@buytaert.net>2009-01-13 22:25:13 +0000
commitb86354c55c28f88b9bbd426d8faf405246148ee4 (patch)
treeb9c2f224dfd4be3b3108be016333b5c446467092 /modules/taxonomy/taxonomy.api.php
parentb986cc556d3eb30afd95d996cbfbe92a7537411f (diff)
downloadbrdo-b86354c55c28f88b9bbd426d8faf405246148ee4.tar.gz
brdo-b86354c55c28f88b9bbd426d8faf405246148ee4.tar.bz2
- Patch #225562 by Jody Lynn: change DB table names from eg. term_data to taxonomy_term_data.
Diffstat (limited to 'modules/taxonomy/taxonomy.api.php')
-rw-r--r--modules/taxonomy/taxonomy.api.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/taxonomy/taxonomy.api.php b/modules/taxonomy/taxonomy.api.php
index 617204d8a..21790e17b 100644
--- a/modules/taxonomy/taxonomy.api.php
+++ b/modules/taxonomy/taxonomy.api.php
@@ -78,7 +78,7 @@ function hook_taxonomy_vocabulary_delete($vocabulary) {
* loaded in a single query for all terms where possible.
*
* Since terms are stored and retrieved from cache during a page request, avoid
- * altering properties provided by the {term_data} table, since this may
+ * altering properties provided by the {taxonomy_term_data} table, since this may
* affect the way results are loaded from cache in subsequent calls.
*
* @param $terms
@@ -104,7 +104,7 @@ function hook_taxonomy_term_insert($term) {
if (!empty($term->synonyms)) {
foreach (explode ("\n", str_replace("\r", '', $term->synonyms)) as $synonym) {
if ($synonym) {
- db_insert('term_synonym')
+ db_insert('taxonomy_term_synonym')
->fields(array(
'tid' => $term->tid,
'name' => rtrim($synonym),
@@ -128,7 +128,7 @@ function hook_taxonomy_term_update($term) {
if (!empty($term->synonyms)) {
foreach (explode ("\n", str_replace("\r", '', $term->synonyms)) as $synonym) {
if ($synonym) {
- db_insert('term_synonym')
+ db_insert('taxonomy_term_synonym')
->fields(array(
'tid' => $term->tid,
'name' => rtrim($synonym),