summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-02-21 19:47:44 +0000
committerDries Buytaert <dries@buytaert.net>2005-02-21 19:47:44 +0000
commit1e15bed312d089e5527038825e0608374b057d87 (patch)
tree3941b651edd09e7dce8c11f0d7c92b8f9a77c997 /modules
parente9f14b70d20c9f4e5247ea51b8a5c5287381c788 (diff)
downloadbrdo-1e15bed312d089e5527038825e0608374b057d87.tar.gz
brdo-1e15bed312d089e5527038825e0608374b057d87.tar.bz2
- Patch #17687 by Gerhard: removed some cruft.
Diffstat (limited to 'modules')
-rw-r--r--modules/node.module4
-rw-r--r--modules/node/node.module4
-rw-r--r--modules/taxonomy.module9
-rw-r--r--modules/taxonomy/taxonomy.module9
4 files changed, 0 insertions, 26 deletions
diff --git a/modules/node.module b/modules/node.module
index 008de3dd4..096d194a6 100644
--- a/modules/node.module
+++ b/modules/node.module
@@ -457,10 +457,6 @@ function node_save($node) {
}
}
- $keysfmt = implode(', ', $s);
- // We need to quote the placeholders for the values.
- $valsfmt = "'". implode("', '", $s) ."'";
-
// Insert the node into the database:
db_query("INSERT INTO {node} (". implode(", ", $k) .") VALUES(". implode(", ", $s) .")", $v);
diff --git a/modules/node/node.module b/modules/node/node.module
index 008de3dd4..096d194a6 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -457,10 +457,6 @@ function node_save($node) {
}
}
- $keysfmt = implode(', ', $s);
- // We need to quote the placeholders for the values.
- $valsfmt = "'". implode("', '", $s) ."'";
-
// Insert the node into the database:
db_query("INSERT INTO {node} (". implode(", ", $k) .") VALUES(". implode(", ", $s) .")", $v);
diff --git a/modules/taxonomy.module b/modules/taxonomy.module
index 1bd57ec11..ea802def7 100644
--- a/modules/taxonomy.module
+++ b/modules/taxonomy.module
@@ -473,15 +473,6 @@ function taxonomy_node_form($type, $node = '', $help = NULL, $name = 'taxonomy')
}
/**
- * Determine whether a node mentions the name of a term.
- */
-function taxonomy_node_has_term($nid, $tid) {
- $term_name = db_result(db_query('SELECT name FROM {term_data} WHERE tid = %d', $tid));
-
- return db_result(db_query("SELECT COUNT(n.nid) FROM {node} n WHERE n.nid = %d AND ((n.title LIKE '%%%s%%') OR (n.body LIKE '%%%s%%'))", $nid, $term_name, $term_name));
-}
-
-/**
* Find all terms associated to the given node, within one vocabulary.
*/
function taxonomy_node_get_terms_by_vocabulary($nid, $vid, $key = 'tid') {
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module
index 1bd57ec11..ea802def7 100644
--- a/modules/taxonomy/taxonomy.module
+++ b/modules/taxonomy/taxonomy.module
@@ -473,15 +473,6 @@ function taxonomy_node_form($type, $node = '', $help = NULL, $name = 'taxonomy')
}
/**
- * Determine whether a node mentions the name of a term.
- */
-function taxonomy_node_has_term($nid, $tid) {
- $term_name = db_result(db_query('SELECT name FROM {term_data} WHERE tid = %d', $tid));
-
- return db_result(db_query("SELECT COUNT(n.nid) FROM {node} n WHERE n.nid = %d AND ((n.title LIKE '%%%s%%') OR (n.body LIKE '%%%s%%'))", $nid, $term_name, $term_name));
-}
-
-/**
* Find all terms associated to the given node, within one vocabulary.
*/
function taxonomy_node_get_terms_by_vocabulary($nid, $vid, $key = 'tid') {