Commit a639f48c authored by bojanz's avatar bojanz Committed by tim.plunkett

Issue #1757036 by bojanz: Remove old 'moved to' definitions.

parent e2494156
......@@ -10,11 +10,7 @@
/**
* Implements hook_views_data().
*/
function comment_views_data() {
$data['comments']['moved to'] = 'comment';
$data['comment']['comment']['moved to'] = array('field_data_comment_body', 'comment_body');
$data['comment']['comment']['field']['moved to'] = array('field_data_comment_body', 'comment_body');
// Define the base group of this table. Fields that don't
// have a group defined will go into this field by default.
$data['comment']['table']['group'] = t('Comment');
......@@ -190,7 +186,6 @@ function comment_views_data() {
);
}
$data['comments']['timestamp']['moved to'] = array('comment', 'changed');
// changed (when comment was last updated)
$data['comment']['changed'] = array(
'title' => t('Updated date'),
......@@ -207,7 +202,6 @@ function comment_views_data() {
),
);
$data['comments']['timestamp_fulldate']['moved to'] = array('comment', 'changed_fulldata');
$data['comment']['changed_fulldata'] = array(
'title' => t('Created date'),
'help' => t('Date in the form of CCYYMMDD.'),
......@@ -217,7 +211,6 @@ function comment_views_data() {
),
);
$data['comments']['timestamp_year_month']['moved to'] = array('comment', 'changed_year_month');
$data['comment']['changed_year_month'] = array(
'title' => t('Created year + month'),
'help' => t('Date in the form of YYYYMM.'),
......@@ -227,7 +220,6 @@ function comment_views_data() {
),
);
$data['comments']['timestamp_year']['moved to'] = array('comment', 'changed_year');
$data['comment']['changed_year'] = array(
'title' => t('Created year'),
'help' => t('Date in the form of YYYY.'),
......@@ -237,7 +229,6 @@ function comment_views_data() {
),
);
$data['comments']['timestamp_month']['moved to'] = array('comment', 'changed_month');
$data['comment']['changed_month'] = array(
'title' => t('Created month'),
'help' => t('Date in the form of MM (01 - 12).'),
......@@ -247,7 +238,6 @@ function comment_views_data() {
),
);
$data['comments']['timestamp_day']['moved to'] = array('comment', 'changed_day');
$data['comment']['changed_day'] = array(
'title' => t('Created day'),
'help' => t('Date in the form of DD (01 - 31).'),
......@@ -257,7 +247,6 @@ function comment_views_data() {
),
);
$data['comments']['timestamp_week']['moved to'] = array('comment', 'changed_week');
$data['comment']['changed_week'] = array(
'title' => t('Created week'),
'help' => t('Date in the form of WW (01 - 53).'),
......
......@@ -187,7 +187,6 @@ function field_views_field_default_views_data($field) {
$column = $field['field_name'] . '-' . $old_column;
}
$data[$table][$old_column]['field']['moved to'] = array($table, $column);
$data[$table][$column] = array(
'group' => $group,
'title' => $label,
......
......@@ -16,7 +16,6 @@ function filter_views_data() {
// Have not defined $data['filter_formats']['table']['group'] since
// no fields are defined here yet.
$data['filter_formats']['moved to'] = 'filter_format';
$data['filter_format']['table']['join'] = array(
'node_revision' => array(
'left_field' => 'format',
......
......@@ -227,7 +227,6 @@ function node_views_data() {
$data['views_entity_node']['table']['group'] = t('Content');
$data['node']['view_node']['moved to'] = array('views_entity_node', 'view_node');
$data['views_entity_node']['view_node'] = array(
'field' => array(
'title' => t('Link'),
......@@ -236,7 +235,6 @@ function node_views_data() {
),
);
$data['node']['edit_node']['moved to'] = array('views_entity_node', 'edit_node');
$data['views_entity_node']['edit_node'] = array(
'field' => array(
'title' => t('Edit link'),
......@@ -245,7 +243,6 @@ function node_views_data() {
),
);
$data['node']['delete_node']['moved to'] = array('views_entity_node', 'delete_node');
$data['views_entity_node']['delete_node'] = array(
'field' => array(
'title' => t('Delete link'),
......@@ -413,11 +410,8 @@ function node_views_data() {
// Define the base group of this table. Fields that don't
// have a group defined will go into this field by default.
$data['node_revisions']['moved to'] = 'node_revision';
$data['node_revision']['table']['entity type'] = 'node';
$data['node_revision']['table']['group'] = t('Content revision');
// Support the conversion of the field body
$data['node_revisions']['body']['moved to'] = array('field_revision_data', 'body-revision_id');
// Advertise this table as a possible base table
$data['node_revision']['table']['base'] = array(
......@@ -594,7 +588,6 @@ function node_views_data() {
// We're actually defining a specific instance of the table, so let's
// alias it so that we can later add the real table for other purposes if we
// need it.
$data['history_user']['moved to'] = 'history';
$data['history']['table']['group'] = t('Content');
// Explain how this table joins to others.
......
......@@ -16,7 +16,6 @@ function system_views_data() {
// ----------------------------------------------------------------------
// file_managed table
$data['files']['moved to'] = 'file_managed';
$data['file_managed']['table']['group'] = t('File');
// Advertise this table as a possible base table
......
......@@ -16,7 +16,6 @@ function taxonomy_views_data() {
// ----------------------------------------------------------------------
// taxonomy_vocabulary table
$data['vocabulary']['moved to'] = 'taxonomy_vocabulary';
$data['taxonomy_vocabulary']['table']['group'] = t('Taxonomy vocabulary');
$data['taxonomy_vocabulary']['table']['join'] = array(
......@@ -108,7 +107,6 @@ function taxonomy_views_data() {
// ----------------------------------------------------------------------
// taxonomy_term_data table
$data['term_data']['moved to'] = 'taxonomy_term_data';
$data['taxonomy_term_data']['table']['group'] = t('Taxonomy term');
$data['taxonomy_term_data']['table']['base'] = array(
'field' => 'tid',
......@@ -268,7 +266,6 @@ function taxonomy_views_data() {
// ----------------------------------------------------------------------
// taxonomy_index table
$data['term_node']['moved to'] = 'taxonomy_index';
$data['taxonomy_index']['table']['group'] = t('Taxonomy term');
$data['taxonomy_index']['table']['join'] = array(
......@@ -330,7 +327,6 @@ function taxonomy_views_data() {
$data['taxonomy_term_hierarchy']['table']['group'] = t('Taxonomy term');
$data['term_hierarchy']['moved to'] = 'taxonomy_term_hierarchy';
$data['taxonomy_term_hierarchy']['table']['join'] = array(
'taxonomy_term_hierarchy' => array(
// links to self through left.parent = right.tid (going down in depth)
......
......@@ -170,7 +170,6 @@ function user_views_data() {
);
// picture
$data['users']['picture_fid']['moved to'] = array('users', 'picture');
$data['users']['picture'] = array(
'title' => t('Picture'),
'help' => t("The user's picture, if allowed."), // The help that appears on the UI,
......@@ -232,7 +231,6 @@ function user_views_data() {
),
);
$data['users']['timestamp_year']['moved to'] = array('users', 'created_year');
$data['users']['created_year'] = array(
'title' => t('Created year'),
'help' => t('Date in the form of YYYY.'),
......
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