summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEarl Miles2006-05-15 01:11:33 (GMT)
committer Earl Miles2006-05-15 01:11:33 (GMT)
commit61d76cf83a0b7f87d6cf73b0b3f1fbc62a8416df (patch)
treed249aa342d4f7552a4e471477801c4ef10598947
parent7957b34407cfd77727e0716dbfb4c2a409aed0e5 (diff)
get rid of form_id and op from submit in GET args on exposed filters.
-rw-r--r--views.module7
-rw-r--r--views_query.inc5
2 files changed, 6 insertions, 6 deletions
diff --git a/views.module b/views.module
index a432f16..86f35ec 100644
--- a/views.module
+++ b/views.module
@@ -1316,12 +1316,17 @@ function theme_views_display_filters($view) {
$form["filter$count"] = $item;
}
$form['#method'] = 'get';
+ $form['#process'] = array('views_filters_process' => array());
$form['view'] = array('#type' => 'value', '#value' => $view);
- $form['submit'] = array('#type' => 'button', '#value' => t('Submit'));
+ $form['submit'] = array('#type' => 'button', '#name' => '', '#value' => t('Submit'));
return drupal_get_form("views_filters_$view->name", $form, 'views_filters');
}
+function views_filters_process($form) {
+ unset($form['form_id']);
+ return $form;
+}
function theme_views_filters($form) {
$view = $form['view']['#value'];
foreach ($view->exposed_filter as $count => $expose) {
diff --git a/views_query.inc b/views_query.inc
index 02f5635..595a0c3 100644
--- a/views_query.inc
+++ b/views_query.inc
@@ -101,11 +101,6 @@ function _views_view_build_filters(&$query, &$view) {
}
break;
}
- // remove these so they don't show up in the pager.
- if (strpos($_REQUEST['edit']['form_id'], 'views_filters')) {
- unset($_REQUEST['op']);
- unset($_REQUEST['edit']['form_id']);
- }
}
$table = $filterinfo['table'];