Issue #2002496 by baldwinlouie: Rename Views method exposed_form_alter() to exposedFormAlter().
parent
35a7926001
commit
c481e2fdbe
|
@ -182,7 +182,7 @@ abstract class ExposedFormPluginBase extends PluginBase {
|
|||
|
||||
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 @@ abstract class ExposedFormPluginBase extends PluginBase {
|
|||
|
||||
$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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -239,7 +239,7 @@ abstract class PagerPluginBase extends PluginBase {
|
|||
&& $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) { }
|
||||
|
||||
|
|
|
@ -335,7 +335,7 @@ abstract class SqlBase extends PagerPluginBase {
|
|||
return !empty($this->options['expose']['offset']);
|
||||
}
|
||||
|
||||
function exposed_form_alter(&$form, &$form_state) {
|
||||
public function exposedFormAlter(&$form, &$form_state) {
|
||||
if ($this->itemsPerPageExposed()) {
|
||||
$options = explode(',', $this->options['expose']['items_per_page_options']);
|
||||
$sanitized_options = array();
|
||||
|
|
|
@ -1416,7 +1416,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);
|
||||
|
|
Loading…
Reference in New Issue