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
3ae4f118
Commit
3ae4f118
authored
Jan 12, 2015
by
alexpott
Browse files
Issue
#2400153
by pcambra: Move bulk form data definition to their EntityViewsData
parent
155aa8d9
Changes
4
Hide whitespace changes
Inline
Side-by-side
core/modules/node/node.views.inc
View file @
3ae4f118
...
...
@@ -8,19 +8,6 @@
use
Drupal\views\Analyzer
;
use
Drupal\views\ViewExecutable
;
/**
* Implements hook_views_data_alter().
*/
function
node_views_data_alter
(
&
$data
)
{
$data
[
'node'
][
'node_bulk_form'
]
=
array
(
'title'
=>
t
(
'Node operations bulk form'
),
'help'
=>
t
(
'Add a form element that lets you run operations on multiple nodes.'
),
'field'
=>
array
(
'id'
=>
'node_bulk_form'
,
),
);
}
/**
* Implements hook_views_wizard().
*/
...
...
core/modules/node/src/NodeViewsData.php
View file @
3ae4f118
...
...
@@ -115,6 +115,14 @@ public function getViewsData() {
),
);
$data
[
'node'
][
'node_bulk_form'
]
=
array
(
'title'
=>
t
(
'Node operations bulk form'
),
'help'
=>
t
(
'Add a form element that lets you run operations on multiple nodes.'
),
'field'
=>
array
(
'id'
=>
'node_bulk_form'
,
),
);
// Bogus fields for aliasing purposes.
// @todo Add similar support to any date field
...
...
core/modules/user/src/UserViewsData.php
View file @
3ae4f118
...
...
@@ -277,6 +277,14 @@ public function getViewsData() {
),
);
$data
[
'users'
][
'user_bulk_form'
]
=
array
(
'title'
=>
t
(
'Bulk update'
),
'help'
=>
t
(
'Add a form element that lets you run operations on multiple users.'
),
'field'
=>
array
(
'id'
=>
'user_bulk_form'
,
),
);
$data
[
'user__roles'
][
'table'
][
'group'
]
=
t
(
'User'
);
$data
[
'user__roles'
][
'table'
][
'join'
]
=
array
(
...
...
core/modules/user/user.views.inc
View file @
3ae4f118
...
...
@@ -5,19 +5,6 @@
* Provide views data for user.module.
*/
/**
* Implements hook_views_data_alter().
*/
function
user_views_data_alter
(
&
$data
)
{
$data
[
'users'
][
'user_bulk_form'
]
=
array
(
'title'
=>
t
(
'Bulk update'
),
'help'
=>
t
(
'Add a form element that lets you run operations on multiple users.'
),
'field'
=>
array
(
'id'
=>
'user_bulk_form'
,
),
);
}
/**
* Implements hook_views_plugins_argument_validator_alter().
*/
...
...
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