diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/exposed_form/ExposedFormPluginBase.php b/core/modules/views/lib/Drupal/views/Plugin/views/exposed_form/ExposedFormPluginBase.php index 0255179..d5f3e65 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/exposed_form/ExposedFormPluginBase.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/exposed_form/ExposedFormPluginBase.php @@ -182,7 +182,7 @@ function pre_execute() { } public function postExecute() { } - function exposed_form_alter(&$form, &$form_state) { + public function exposedFormAlter(&$form, &$form_state) { $form['submit']['#value'] = $this->options['submit_button']; // Check if there is exposed sorts for this view $exposed_sorts = array(); @@ -249,7 +249,7 @@ function exposed_form_alter(&$form, &$form_state) { $pager = $this->view->display_handler->getPlugin('pager'); if ($pager) { - $pager->exposed_form_alter($form, $form_state); + $pager->exposedFormAlter($form, $form_state); $form_state['pager_plugin'] = $pager; } } diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/pager/PagerPluginBase.php b/core/modules/views/lib/Drupal/views/Plugin/views/pager/PagerPluginBase.php index 49ef067..a9080da 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/pager/PagerPluginBase.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/pager/PagerPluginBase.php @@ -239,7 +239,7 @@ function has_more_records() { && $this->total_items > (intval($this->current_page) + 1) * $this->get_items_per_page(); } - function exposed_form_alter(&$form, &$form_state) { } + function exposedFormAlter(&$form, &$form_state) { } function exposed_form_validate(&$form, &$form_state) { } diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/pager/SqlBase.php b/core/modules/views/lib/Drupal/views/Plugin/views/pager/SqlBase.php index f7eb34b..b747b66 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/pager/SqlBase.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/pager/SqlBase.php @@ -335,7 +335,7 @@ function offset_exposed() { return !empty($this->options['expose']['offset']); } - function exposed_form_alter(&$form, &$form_state) { + function exposedFormAlter(&$form, &$form_state) { if ($this->items_per_page_exposed()) { $options = explode(',', $this->options['expose']['items_per_page_options']); $sanitized_options = array(); diff --git a/core/modules/views/views.module b/core/modules/views/views.module index 09d8c6e..fed8aa4 100644 --- a/core/modules/views/views.module +++ b/core/modules/views/views.module @@ -1475,7 +1475,7 @@ function views_exposed_form($form, &$form_state) { // $form['#attributes']['class'] = array('views-exposed-form'); $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 views_exposed_form_cache($view->storage->id(), $view->current_display, $form); @@ -1489,7 +1489,7 @@ function views_exposed_form($form, &$form_state) { * Since the exposed form is a GET form, we don't want it to send a wide * variety of information. */ -function views_form_views_exposed_form_alter(&$form, &$form_state) { +function views_form_views_exposedFormAlter(&$form, &$form_state) { $form['form_build_id']['#access'] = FALSE; $form['form_token']['#access'] = FALSE; $form['form_id']['#access'] = FALSE;