Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
7ff44499
Commit
7ff44499
authored
May 29, 2013
by
alexpott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2002444
by fmizzell: Rename Views method default_argument_form() to defaultArgumentForm().
parent
c4e52bb6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
core/modules/views/lib/Drupal/views/Plugin/views/argument/ArgumentPluginBase.php
...Drupal/views/Plugin/views/argument/ArgumentPluginBase.php
+2
-2
core/modules/views/lib/Drupal/views/Plugin/views/argument/Date.php
...les/views/lib/Drupal/views/Plugin/views/argument/Date.php
+2
-2
No files found.
core/modules/views/lib/Drupal/views/Plugin/views/argument/ArgumentPluginBase.php
View file @
7ff44499
...
...
@@ -449,7 +449,7 @@ function default_actions($which = NULL) {
'default'
=>
array
(
'title'
=>
t
(
'Provide default value'
),
'method'
=>
'default_default'
,
'form method'
=>
'default
_a
rgument
_f
orm'
,
'form method'
=>
'default
A
rgument
F
orm'
,
'has default argument'
=>
TRUE
,
'default only'
=>
TRUE
,
// this can only be used for missing argument, not validation failure
'breadcrumb'
=>
TRUE
,
// generate a breadcrumb to here
...
...
@@ -496,7 +496,7 @@ function default_actions($which = NULL) {
* Provide a form for selecting the default argument when the
* default action is set to provide default argument.
*/
function
default
_a
rgument
_f
orm
(
&
$form
,
&
$form_state
)
{
public
function
default
A
rgument
F
orm
(
&
$form
,
&
$form_state
)
{
$plugins
=
Views
::
pluginManager
(
'argument_default'
)
->
getDefinitions
();
$options
=
array
();
...
...
core/modules/views/lib/Drupal/views/Plugin/views/argument/Date.php
View file @
7ff44499
...
...
@@ -47,8 +47,8 @@ class Date extends Formula {
/**
* Add an option to set the default value to the current date.
*/
function
default
_a
rgument
_f
orm
(
&
$form
,
&
$form_state
)
{
parent
::
default
_a
rgument
_f
orm
(
$form
,
$form_state
);
public
function
default
A
rgument
F
orm
(
&
$form
,
&
$form_state
)
{
parent
::
default
A
rgument
F
orm
(
$form
,
$form_state
);
$form
[
'default_argument_type'
][
'#options'
]
+=
array
(
'date'
=>
t
(
'Current date'
));
$form
[
'default_argument_type'
][
'#options'
]
+=
array
(
'node_created'
=>
t
(
"Current node's creation time"
));
$form
[
'default_argument_type'
][
'#options'
]
+=
array
(
'node_changed'
=>
t
(
"Current node's update time"
));
}
...
...
Write
Preview
Markdown
is supported
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