summaryrefslogtreecommitdiff
path: root/modules/node/node.admin.inc
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-08-23 04:37:52 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-08-23 04:37:52 +0000
commit22a5a73ddfb32de55ccb5a7d2722ead504c19dbc (patch)
tree2c7128789ec3d8b4a5f9b54be8b4173874e65d22 /modules/node/node.admin.inc
parent041d8ee5a87abca32c97514b0c5cb667f3e5cff5 (diff)
downloadbrdo-22a5a73ddfb32de55ccb5a7d2722ead504c19dbc.tar.gz
brdo-22a5a73ddfb32de55ccb5a7d2722ead504c19dbc.tar.bz2
#542206 by asimmonds: Fix admin/content filters (with tests).
Diffstat (limited to 'modules/node/node.admin.inc')
-rw-r--r--modules/node/node.admin.inc7
1 files changed, 3 insertions, 4 deletions
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('<em>and</em> where <strong>%a</strong> is <strong>%b</strong>', array('%a' => $filters[$type]['title'], '%b' => $value)));
+ $form['filters']['current'][] = array('#markup' => t('<em>and</em> where <strong>%type</strong> is <strong>%value</strong>', array('%type' => $filters[$type]['title'], '%value' => $value)));
}
else {
- $form['filters']['current'][] = array('#markup' => t('<strong>%a</strong> is <strong>%b</strong>', array('%a' => $filters[$type]['title'], '%b' => $value)));
+ $form['filters']['current'][] = array('#markup' => t('<strong>%type</strong> is <strong>%value</strong>', 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();