Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
7731380b
Commit
7731380b
authored
Jun 05, 2013
by
alexpott
Browse files
Issue
#2002930
by marlatt, markie: Rename Views method value_validate() to valueValidate().
parent
d72064fa
Changes
4
Show whitespace changes
Inline
Side-by-side
core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/filter/TaxonomyIndexTid.php
View file @
7731380b
...
...
@@ -211,7 +211,7 @@ protected function valueForm(&$form, &$form_state) {
}
}
function
value
_v
alidate
(
$form
,
&
$form_state
)
{
protected
function
value
V
alidate
(
$form
,
&
$form_state
)
{
// We only validate if they've chosen the text field style.
if
(
$this
->
options
[
'type'
]
!=
'textfield'
)
{
return
;
...
...
core/modules/user/lib/Drupal/user/Plugin/views/filter/Name.php
View file @
7731380b
...
...
@@ -50,7 +50,7 @@ protected function valueForm(&$form, &$form_state) {
}
}
function
value
_v
alidate
(
$form
,
&
$form_state
)
{
protected
function
value
V
alidate
(
$form
,
&
$form_state
)
{
$values
=
drupal_explode_tags
(
$form_state
[
'values'
][
'options'
][
'value'
]);
$uids
=
$this
->
validate_user_strings
(
$form
[
'value'
],
$values
);
...
...
core/modules/views/lib/Drupal/views/Plugin/views/filter/BooleanOperator.php
View file @
7731380b
...
...
@@ -135,7 +135,7 @@ protected function valueForm(&$form, &$form_state) {
}
}
function
value
_v
alidate
(
$form
,
&
$form_state
)
{
protected
function
value
V
alidate
(
$form
,
&
$form_state
)
{
if
(
$form_state
[
'values'
][
'options'
][
'value'
]
==
'All'
&&
!
empty
(
$form_state
[
'values'
][
'options'
][
'expose'
][
'required'
]))
{
form_set_error
(
'value'
,
t
(
'You must select a value unless this is an non-required exposed filter.'
));
}
...
...
core/modules/views/lib/Drupal/views/Plugin/views/filter/FilterPluginBase.php
View file @
7731380b
...
...
@@ -235,7 +235,7 @@ public function buildOptionsForm(&$form, &$form_state) {
*/
public
function
validateOptionsForm
(
&
$form
,
&
$form_state
)
{
$this
->
operator_validate
(
$form
,
$form_state
);
$this
->
value
_v
alidate
(
$form
,
$form_state
);
$this
->
value
V
alidate
(
$form
,
$form_state
);
if
(
!
empty
(
$this
->
options
[
'exposed'
])
&&
!
$this
->
isAGroup
())
{
$this
->
validateExposeForm
(
$form
,
$form_state
);
}
...
...
@@ -332,7 +332,7 @@ protected function valueForm(&$form, &$form_state) { $form['value'] = array(); }
/**
* Validate the options form.
*/
function
value
_v
alidate
(
$form
,
&
$form_state
)
{
}
protected
function
value
V
alidate
(
$form
,
&
$form_state
)
{
}
/**
* Perform any necessary changes to the form values prior to storage.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment