From 22a5a73ddfb32de55ccb5a7d2722ead504c19dbc Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sun, 23 Aug 2009 04:37:52 +0000 Subject: #542206 by asimmonds: Fix admin/content filters (with tests). --- modules/node/node.admin.inc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'modules/node/node.admin.inc') diff --git a/modules/node/node.admin.inc b/modules/node/node.admin.inc index 1960ccbb4..b6b9a9522 100644 --- a/modules/node/node.admin.inc +++ b/modules/node/node.admin.inc @@ -145,7 +145,6 @@ function node_filter_form() { '#title' => t('Show only items where'), '#theme' => 'node_filters', ); - $form['#submit'][] = 'node_filter_form_submit'; foreach ($session as $filter) { list($type, $value) = $filter; if ($type == 'term') { @@ -160,10 +159,10 @@ function node_filter_form() { $value = $filters[$type]['options'][$value]; } if ($i++) { - $form['filters']['current'][] = array('#markup' => t('and where %a is %b', array('%a' => $filters[$type]['title'], '%b' => $value))); + $form['filters']['current'][] = array('#markup' => t('and where %type is %value', array('%type' => $filters[$type]['title'], '%value' => $value))); } else { - $form['filters']['current'][] = array('#markup' => t('%a is %b', array('%a' => $filters[$type]['title'], '%b' => $value))); + $form['filters']['current'][] = array('#markup' => t('%type is %value', array('%type' => $filters[$type]['title'], '%value' => $value))); } if (in_array($type, array('type', 'language'))) { // Remove the option if it is already being filtered on. @@ -377,7 +376,7 @@ function node_admin_content($form_state) { '#markup' => theme('links', array(array('title' => t('Add new content'), 'href' => 'node/add')), array('class' => array('action-links'))), ); $form[] = node_filter_form(); - + $form['#submit'][] = 'node_filter_form_submit'; $form['#theme'] = 'node_filter_form'; $form['admin'] = node_admin_nodes(); -- cgit v1.2.3