Commit c481e2fd authored by alexpott's avatar alexpott
Browse files

Issue #2002496 by baldwinlouie: Rename Views method exposed_form_alter() to exposedFormAlter().

parent 35a79260
...@@ -182,7 +182,7 @@ public function preExecute() { } ...@@ -182,7 +182,7 @@ public function preExecute() { }
public function postExecute() { } public function postExecute() { }
function exposed_form_alter(&$form, &$form_state) { public function exposedFormAlter(&$form, &$form_state) {
$form['submit']['#value'] = $this->options['submit_button']; $form['submit']['#value'] = $this->options['submit_button'];
// Check if there is exposed sorts for this view // Check if there is exposed sorts for this view
$exposed_sorts = array(); $exposed_sorts = array();
...@@ -249,7 +249,7 @@ function exposed_form_alter(&$form, &$form_state) { ...@@ -249,7 +249,7 @@ function exposed_form_alter(&$form, &$form_state) {
$pager = $this->view->display_handler->getPlugin('pager'); $pager = $this->view->display_handler->getPlugin('pager');
if ($pager) { if ($pager) {
$pager->exposed_form_alter($form, $form_state); $pager->exposedFormAlter($form, $form_state);
$form_state['pager_plugin'] = $pager; $form_state['pager_plugin'] = $pager;
} }
} }
......
...@@ -239,7 +239,7 @@ public function hasMoreRecords() { ...@@ -239,7 +239,7 @@ public function hasMoreRecords() {
&& $this->total_items > (intval($this->current_page) + 1) * $this->get_items_per_page(); && $this->total_items > (intval($this->current_page) + 1) * $this->get_items_per_page();
} }
function exposed_form_alter(&$form, &$form_state) { } public function exposedFormAlter(&$form, &$form_state) { }
function exposed_form_validate(&$form, &$form_state) { } function exposed_form_validate(&$form, &$form_state) { }
......
...@@ -335,7 +335,7 @@ function offset_exposed() { ...@@ -335,7 +335,7 @@ function offset_exposed() {
return !empty($this->options['expose']['offset']); return !empty($this->options['expose']['offset']);
} }
function exposed_form_alter(&$form, &$form_state) { public function exposedFormAlter(&$form, &$form_state) {
if ($this->itemsPerPageExposed()) { if ($this->itemsPerPageExposed()) {
$options = explode(',', $this->options['expose']['items_per_page_options']); $options = explode(',', $this->options['expose']['items_per_page_options']);
$sanitized_options = array(); $sanitized_options = array();
......
...@@ -1416,7 +1416,7 @@ function views_exposed_form($form, &$form_state) { ...@@ -1416,7 +1416,7 @@ function views_exposed_form($form, &$form_state) {
// $form['#attributes']['class'] = array('views-exposed-form'); // $form['#attributes']['class'] = array('views-exposed-form');
$exposed_form_plugin = $form_state['exposed_form_plugin']; $exposed_form_plugin = $form_state['exposed_form_plugin'];
$exposed_form_plugin->exposed_form_alter($form, $form_state); $exposed_form_plugin->exposedFormAlter($form, $form_state);
// Save the form // Save the form
views_exposed_form_cache($view->storage->id(), $view->current_display, $form); views_exposed_form_cache($view->storage->id(), $view->current_display, $form);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment