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
c481e2fd
Commit
c481e2fd
authored
Jun 05, 2013
by
alexpott
Browse files
Issue
#2002496
by baldwinlouie: Rename Views method exposed_form_alter() to exposedFormAlter().
parent
35a79260
Changes
4
Hide whitespace changes
Inline
Side-by-side
core/modules/views/lib/Drupal/views/Plugin/views/exposed_form/ExposedFormPluginBase.php
View file @
c481e2fd
...
@@ -182,7 +182,7 @@ public function preExecute() { }
...
@@ -182,7 +182,7 @@ public function preExecute() { }
public
function
postExecute
()
{
}
public
function
postExecute
()
{
}
function
exposed
_f
orm
_a
lter
(
&
$form
,
&
$form_state
)
{
public
function
exposed
F
orm
A
lter
(
&
$form
,
&
$form_state
)
{
$form
[
'submit'
][
'#value'
]
=
$this
->
options
[
'submit_button'
];
$form
[
'submit'
][
'#value'
]
=
$this
->
options
[
'submit_button'
];
// Check if there is exposed sorts for this view
// Check if there is exposed sorts for this view
$exposed_sorts
=
array
();
$exposed_sorts
=
array
();
...
@@ -249,7 +249,7 @@ function exposed_form_alter(&$form, &$form_state) {
...
@@ -249,7 +249,7 @@ function exposed_form_alter(&$form, &$form_state) {
$pager
=
$this
->
view
->
display_handler
->
getPlugin
(
'pager'
);
$pager
=
$this
->
view
->
display_handler
->
getPlugin
(
'pager'
);
if
(
$pager
)
{
if
(
$pager
)
{
$pager
->
exposed
_f
orm
_a
lter
(
$form
,
$form_state
);
$pager
->
exposed
F
orm
A
lter
(
$form
,
$form_state
);
$form_state
[
'pager_plugin'
]
=
$pager
;
$form_state
[
'pager_plugin'
]
=
$pager
;
}
}
}
}
...
...
core/modules/views/lib/Drupal/views/Plugin/views/pager/PagerPluginBase.php
View file @
c481e2fd
...
@@ -239,7 +239,7 @@ public function hasMoreRecords() {
...
@@ -239,7 +239,7 @@ public function hasMoreRecords() {
&&
$this
->
total_items
>
(
intval
(
$this
->
current_page
)
+
1
)
*
$this
->
get_items_per_page
();
&&
$this
->
total_items
>
(
intval
(
$this
->
current_page
)
+
1
)
*
$this
->
get_items_per_page
();
}
}
function
exposed
_f
orm
_a
lter
(
&
$form
,
&
$form_state
)
{
}
public
function
exposed
F
orm
A
lter
(
&
$form
,
&
$form_state
)
{
}
function
exposed_form_validate
(
&
$form
,
&
$form_state
)
{
}
function
exposed_form_validate
(
&
$form
,
&
$form_state
)
{
}
...
...
core/modules/views/lib/Drupal/views/Plugin/views/pager/SqlBase.php
View file @
c481e2fd
...
@@ -335,7 +335,7 @@ function offset_exposed() {
...
@@ -335,7 +335,7 @@ function offset_exposed() {
return
!
empty
(
$this
->
options
[
'expose'
][
'offset'
]);
return
!
empty
(
$this
->
options
[
'expose'
][
'offset'
]);
}
}
function
exposed
_f
orm
_a
lter
(
&
$form
,
&
$form_state
)
{
public
function
exposed
F
orm
A
lter
(
&
$form
,
&
$form_state
)
{
if
(
$this
->
itemsPerPageExposed
())
{
if
(
$this
->
itemsPerPageExposed
())
{
$options
=
explode
(
','
,
$this
->
options
[
'expose'
][
'items_per_page_options'
]);
$options
=
explode
(
','
,
$this
->
options
[
'expose'
][
'items_per_page_options'
]);
$sanitized_options
=
array
();
$sanitized_options
=
array
();
...
...
core/modules/views/views.module
View file @
c481e2fd
...
@@ -1416,7 +1416,7 @@ function views_exposed_form($form, &$form_state) {
...
@@ -1416,7 +1416,7 @@ function views_exposed_form($form, &$form_state) {
// $form['#attributes']['class'] = array('views-exposed-form');
// $form['#attributes']['class'] = array('views-exposed-form');
$exposed_form_plugin
=
$form_state
[
'exposed_form_plugin'
];
$exposed_form_plugin
=
$form_state
[
'exposed_form_plugin'
];
$exposed_form_plugin
->
exposed
_f
orm
_a
lter
(
$form
,
$form_state
);
$exposed_form_plugin
->
exposed
F
orm
A
lter
(
$form
,
$form_state
);
// Save the form
// Save the form
views_exposed_form_cache
(
$view
->
storage
->
id
(),
$view
->
current_display
,
$form
);
views_exposed_form_cache
(
$view
->
storage
->
id
(),
$view
->
current_display
,
$form
);
...
...
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