Skip to content
Snippets Groups Projects
Commit 3ae4f118 authored by Alex Pott's avatar Alex Pott
Browse files

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

parent 155aa8d9
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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().
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment