Issue #2002500 by fmizzell, jibran: Rename Views method exposed_form_validate() to exposedFormValidate().
parent
fc827a81fa
commit
d7ef279157
|
@ -254,9 +254,9 @@ abstract class ExposedFormPluginBase extends PluginBase {
|
|||
}
|
||||
}
|
||||
|
||||
function exposed_form_validate(&$form, &$form_state) {
|
||||
public function exposedFormValidate(&$form, &$form_state) {
|
||||
if (isset($form_state['pager_plugin'])) {
|
||||
$form_state['pager_plugin']->exposed_form_validate($form, $form_state);
|
||||
$form_state['pager_plugin']->exposedFormValidate($form, $form_state);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -241,7 +241,7 @@ abstract class PagerPluginBase extends PluginBase {
|
|||
|
||||
public function exposedFormAlter(&$form, &$form_state) { }
|
||||
|
||||
function exposed_form_validate(&$form, &$form_state) { }
|
||||
public function exposedFormValidate(&$form, &$form_state) { }
|
||||
|
||||
public function exposedFormSubmit(&$form, &$form_state, &$exclude) { }
|
||||
|
||||
|
|
|
@ -366,7 +366,7 @@ abstract class SqlBase extends PagerPluginBase {
|
|||
}
|
||||
}
|
||||
|
||||
function exposed_form_validate(&$form, &$form_state) {
|
||||
public function exposedFormValidate(&$form, &$form_state) {
|
||||
if (!empty($form_state['values']['offset']) && trim($form_state['values']['offset'])) {
|
||||
if (!is_numeric($form_state['values']['offset']) || $form_state['values']['offset'] < 0) {
|
||||
form_set_error('offset', t('Offset must be an number greather or equal than 0.'));
|
||||
|
|
|
@ -1454,7 +1454,7 @@ function views_exposed_form_validate(&$form, &$form_state) {
|
|||
}
|
||||
}
|
||||
$exposed_form_plugin = $form_state['exposed_form_plugin'];
|
||||
$exposed_form_plugin->exposed_form_validate($form, $form_state);
|
||||
$exposed_form_plugin->exposedFormValidate($form, $form_state);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue