--- relativity.views.inc.orig 2009-12-08 22:01:17.000000000 -0500 +++ relativity.views.inc 2009-12-14 15:10:04.000000000 -0500 @@ -1,5 +1,5 @@ 'nid', - 'title' => t('Patient Node ID'), - 'help' => t('The Node ID of the patient node whom the images belong to.'), + 'title' => t('Node Relativity'), + 'help' => t('Node Relativity for connecting content types to each other.'), ); $data['relativity']['table']['join'] = array( @@ -30,6 +29,12 @@ function relativity_views_data() { 'handler' => 'views_handler_field_node', 'click sortable' => TRUE, ), + 'relationship' => array( + 'base' => 'node', + 'field' => 'nid', + 'handler' => 'views_handler_relationship', + 'label' => t('Child Node'), + ), ); $data['relativity']['parent_nid'] = array( @@ -43,7 +48,14 @@ function relativity_views_data() { 'base' => 'node', 'field' => 'nid', 'handler' => 'views_handler_relationship', - 'label' => t('Node'), + 'label' => t('Parent Node'), + ), + 'argument' => array( + 'name' => t('Post: in specified parent'), + 'name field' => 'title', // the field to display in the summary. + 'validate type' => 'nid', + 'handler' => 'views_handler_argument', + 'help' => t('filter by parent'), ), );