array( 'left_field' => 'nid', 'field' => 'nid', ), // nat links directly to term_data via tid 'term_data' => array( 'left_field' => 'tid', 'field' => 'tid', ), // nat links directly to vocabulary via vid 'vocabulary' => array( 'left_field' => 'vid', 'field' => 'vid', ), ); // ---------------------------------------------------------------- // Fields $data['nat']['nid'] = array( 'title' => t('NAT node'), 'help' => t('A node that is also a taxonomy term.'), 'relationship' => array( 'base' => 'node', 'field' => 'nid', 'handler' => 'views_handler_relationship', 'label' => t('NAT'), ), // There is no argument here; if you need an argument, add the relationship // and use the node: nid argument. ); $data['nat']['vid'] = array( 'title' => t('NAT vocabulary'), 'help' => t('A vocabulary that is used for same-name node-term pairs.'), 'relationship' => array( 'base' => 'vocabulary', 'field' => 'vid', 'handler' => 'views_handler_relationship', 'label' => t('NAT'), ), // There is no argument here; if you need an argument, add the relationship // and use the taxonomy: vid argument. ); $data['nat']['tid'] = array( 'title' => t('NAT taxonomy term'), 'help' => t('A taxonomy term that is also a node.'), 'relationship' => array( 'base' => 'term_data', 'field' => 'tid', 'handler' => 'views_handler_relationship', 'label' => t('NAT'), ), // There is no argument here; if you need an argument, add the relationship // and use the term_data: tid argument. ); return $data; } /** * @} */