summaryrefslogtreecommitdiff
path: root/modules/node/node.admin.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-11-22 14:09:41 +0000
committerDries Buytaert <dries@buytaert.net>2008-11-22 14:09:41 +0000
commit8e0a22e47aba70b4c6a2531f7c725f569af0d17a (patch)
tree6e148a90f35c2de4bc9ff50e9cbf247e4fc562c6 /modules/node/node.admin.inc
parent6e0b06ce3c0bcb424f3430889f69d9486a7afd71 (diff)
downloadbrdo-8e0a22e47aba70b4c6a2531f7c725f569af0d17a.tar.gz
brdo-8e0a22e47aba70b4c6a2531f7c725f569af0d17a.tar.bz2
- Patch #305345 by catch: making all terminology consistent.
Diffstat (limited to 'modules/node/node.admin.inc')
-rw-r--r--modules/node/node.admin.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/node/node.admin.inc b/modules/node/node.admin.inc
index 02606abd8..c61794894 100644
--- a/modules/node/node.admin.inc
+++ b/modules/node/node.admin.inc
@@ -152,7 +152,7 @@ function node_filters() {
// The taxonomy filter
if ($taxonomy = module_invoke('taxonomy', 'form_all', 1)) {
- $filters['category'] = array('title' => t('category'), 'options' => $taxonomy);
+ $filters['term'] = array('title' => t('term'), 'options' => $taxonomy);
}
// Language filter if there is a list of languages
if ($languages = module_invoke('locale', 'language_list')) {
@@ -179,7 +179,7 @@ function node_build_filter_query() {
list($key, $value) = explode('-', $value, 2);
$where[] = 'n.' . $key . ' = %d';
break;
- case 'category':
+ case 'term':
$table = "tn$index";
$where[] = "$table.tid = %d";
$join .= "INNER JOIN {term_node} $table ON n.nid = $table.nid ";
@@ -215,7 +215,7 @@ function node_filter_form() {
$form['#submit'][] = 'node_filter_form_submit';
foreach ($session as $filter) {
list($type, $value) = $filter;
- if ($type == 'category') {
+ if ($type == 'term') {
// Load term name from DB rather than search and parse options array.
$value = module_invoke('taxonomy', 'get_term', $value);
$value = $value->name;