Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
1c619029
Commit
1c619029
authored
May 29, 2013
by
Alex Pott
Browse files
Issue
#2003352
by ericthelast: Rename Views method() to reduceValueOptions().
parent
fe3d8597
Changes
2
Hide whitespace changes
Inline
Side-by-side
core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/filter/TaxonomyIndexTid.php
View file @
1c619029
...
...
@@ -165,7 +165,7 @@ function value_form(&$form, &$form_state) {
$identifier
=
$this
->
options
[
'expose'
][
'identifier'
];
if
(
!
empty
(
$this
->
options
[
'expose'
][
'reduce'
]))
{
$options
=
$this
->
reduce
_v
alue
_o
ptions
(
$options
);
$options
=
$this
->
reduce
V
alue
O
ptions
(
$options
);
if
(
!
empty
(
$this
->
options
[
'expose'
][
'multiple'
])
&&
empty
(
$this
->
options
[
'expose'
][
'required'
]))
{
$default_value
=
array
();
...
...
core/modules/views/lib/Drupal/views/Plugin/views/filter/InOperator.php
View file @
1c619029
...
...
@@ -193,7 +193,7 @@ function value_form(&$form, &$form_state) {
}
if
(
!
empty
(
$this
->
options
[
'expose'
][
'reduce'
]))
{
$options
=
$this
->
reduce
_v
alue
_o
ptions
();
$options
=
$this
->
reduce
V
alue
O
ptions
();
if
(
!
empty
(
$this
->
options
[
'expose'
][
'multiple'
])
&&
empty
(
$this
->
options
[
'expose'
][
'required'
]))
{
$default_value
=
array
();
...
...
@@ -247,7 +247,7 @@ function value_form(&$form, &$form_state) {
/**
* When using exposed filters, we may be required to reduce the set.
*/
function
reduce
_v
alue
_o
ptions
(
$input
=
NULL
)
{
public
function
reduce
V
alue
O
ptions
(
$input
=
NULL
)
{
if
(
!
isset
(
$input
))
{
$input
=
$this
->
value_options
;
}
...
...
@@ -258,7 +258,7 @@ function reduce_value_options($input = NULL) {
$options
=
array
();
foreach
(
$input
as
$id
=>
$option
)
{
if
(
is_array
(
$option
))
{
$options
[
$id
]
=
$this
->
reduce
_v
alue
_o
ptions
(
$option
);
$options
[
$id
]
=
$this
->
reduce
V
alue
O
ptions
(
$option
);
continue
;
}
elseif
(
is_object
(
$option
))
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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