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

8.0.x
Alex Pott 2013-06-05 08:35:33 +01:00
parent 35a7926001
commit c481e2fdbe
4 changed files with 5 additions and 5 deletions

View File

@ -182,7 +182,7 @@ abstract class ExposedFormPluginBase extends PluginBase {
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 @@ abstract class ExposedFormPluginBase extends PluginBase {
$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;
} }
} }

View File

@ -239,7 +239,7 @@ abstract class PagerPluginBase extends PluginBase {
&& $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) { }

View File

@ -335,7 +335,7 @@ abstract class SqlBase extends PagerPluginBase {
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();

View File

@ -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);