Index: includes/views/content.views.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/cck/includes/views/Attic/content.views.inc,v retrieving revision 1.1.2.25.2.3 diff -u -p -r1.1.2.25.2.3 content.views.inc --- includes/views/content.views.inc 11 Aug 2009 20:06:53 -0000 1.1.2.25.2.3 +++ includes/views/content.views.inc 23 Oct 2009 16:41:46 -0000 @@ -349,6 +349,21 @@ function content_views_field_views_data( 'additional fields' => $additional_fields, ); } + + $data['vid'] = array( + 'group' => t('Content'), + 'title' => $field['field_name'], + 'help' => t('Join the @name fields to the Node table', array('@name' => $field['field_name'])), + 'relationship' => array( + 'handler' => 'views_handler_relationship', + 'base' => $table_alias, + 'base field' => 'vid', + 'relationship table' => 'node', + 'relationship field' => 'vid', + 'label' => $field['field_name'], + 'base' => $db_info['table'], + ), + ); return array($table_alias => $data); }