Commit d7ef2791 authored by alexpott's avatar alexpott

Issue #2002500 by fmizzell, jibran: Rename Views method...

Issue #2002500 by fmizzell, jibran: Rename Views method exposed_form_validate() to exposedFormValidate().
parent fc827a81
......@@ -254,9 +254,9 @@ public function exposedFormAlter(&$form, &$form_state) {
}
}
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 @@ public function hasMoreRecords() {
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 @@ public function exposedFormAlter(&$form, &$form_state) {
}
}
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);
}
/**
......
Markdown is supported
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