summaryrefslogtreecommitdiff
path: root/modules/taxonomy.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/taxonomy.module')
-rw-r--r--modules/taxonomy.module9
1 files changed, 0 insertions, 9 deletions
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') {