Commit 3ae4f118 authored by alexpott's avatar alexpott

Issue #2400153 by pcambra: Move bulk form data definition to their EntityViewsData

parent 155aa8d9
......@@ -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().
*/
......
......@@ -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
......
......@@ -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(
......
......@@ -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().
*/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment