Permalink
Browse files

Provide some automatic updating of the existing fields.

  • Loading branch information...
1 parent 7adc7da commit cc9424e26ff7f8b20a7c79fe766f5766fb3fcf53 @dawehner committed Mar 28, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 views/similarterms.views.inc
@@ -4,6 +4,7 @@
* Implements hook_views_data()
**/
function similarterms_views_data_alter(&$data) {
+ $data['similarterms']['similarterms']['moved to'] = array('node', 'similarterms');
$data['node']['similarterms'] = array(
'title' => t('Similarity'),
'group' => t('Similar By Terms'),
@@ -16,6 +17,7 @@ function similarterms_views_data_alter(&$data) {
'handler' => 'similarterms_handler_sort_similar',
),
);
+ $data['similarterms']['nid']['moved to'] = array('node', 'similar_nid');
$data['node']['similar_nid'] = array(
'title' => t('Nid'),
'group' => t('Similar By Terms'),

0 comments on commit cc9424e

Please sign in to comment.