diff options
author | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2002-05-19 23:05:05 +0000 |
---|---|---|
committer | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2002-05-19 23:05:05 +0000 |
commit | c9871b781460776c1a17baea3f91c91d6fd01b26 (patch) | |
tree | 8853c8fb6f68723258cf33496f542ce1e7d48d05 /modules/taxonomy | |
parent | 87cdd8918148a5997e012edf81a07e5dda5b5dc2 (diff) | |
download | brdo-c9871b781460776c1a17baea3f91c91d6fd01b26.tar.gz brdo-c9871b781460776c1a17baea3f91c91d6fd01b26.tar.bz2 |
- updating all nodes to use taxonomy terms.
- updated node modules not to cause errors when taxonomy module is disabled.
- added %date variable to user mail configuration.
- added hyperlinks to admin.php?mod=system (site configuration) for easy access.
- usual coding style and xhtml fixes.
Diffstat (limited to 'modules/taxonomy')
-rw-r--r-- | modules/taxonomy/taxonomy.module | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index dacca431a..5d4a7f4ee 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -19,7 +19,7 @@ function taxonomy_feed() { foreach ((explode(",", $and)) as $t) { $terms[] = "'". check_query($t) ."'"; } - $result = db_query("SELECT n.nid, type, count(*) AS c FROM node n LEFT JOIN term_node r ON n.nid = r.nid WHERE tid IN (". implode(",", $terms) .") AND status = '1' GROUP BY n.nid HAVING c = ". count($terms) ." ORDER BY static DESC, created DESC LIMIT 15"); + $result = db_query("SELECT n.nid, type, count(*) AS c FROM node n LEFT JOIN term_node r ON n.nid = r.nid WHERE tid IN (". implode(",", $terms) .") AND status = '1' GROUP BY n.nid, n.type HAVING c = ". count($terms) ." ORDER BY static DESC, created DESC LIMIT 15"); $term = taxonomy_get_term($and); } else { @@ -56,7 +56,7 @@ function taxonomy_form_vocabulary($edit = array()) { $nodetypes[$name] = $name; } } - + $form .= form_textfield("Vocabulary name", "name", $edit["name"], 50, 64, "Required. The name for this vocabulary. Example: 'Topic'."); $form .= form_textarea("Description", "description", $edit["description"], 60, 5, "Optional. Description of the vocabulary, can be used by modules."); $form .= form_select("Types", "types", explode(",", $edit["types"]), $nodetypes, "Required. A list of node types you want to associate this vocabulary with.", "", 1); |