Index: nat.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/nat/nat.module,v
retrieving revision 1.14.2.7
diff -r1.14.2.7 nat.module
161a162,167
>     $form['nat_'. $type]['nodelink_'. $type] = array(
>       '#type' => 'checkbox',
>       '#title' => t('Term links point to the associated node, not to the taxonomy page.'),
>       '#default_value' => isset($nat_config['nodelink'][$type]) ? $nat_config['nodelink'][$type] : 0,
>       '#parents' => array('nodelink', $type)
>     );
175a182
>   $form_values['nodelink'] = array_filter($form_values['nodelink']);
384a392,411
>  * Implementation of hook_nodeapi().
>  */
> function nat_link_alter(&$node, &$links) {
>   $nat_config = variable_get('nat_config', array());
>   if (isset($nat_config['nodelink'][$node->type])) {
>     foreach ($links AS $module => $link) {
>       if (strstr($module, 'taxonomy_term')) {
>         $tids = array();
>         $tids[] = str_replace('taxonomy/term/', '', $link['href']);
>         $nids = array_keys(nat_get_nids($tids,false));
>         if($nids[0]) {
>           // Link back to the NAT node and not the taxonomy term page
>           $links[$module]['href'] = drupal_get_path_alias("node/{$nids[0]}");
>         }
>       }
>     }
>   }
> }
> 
> /**
524d550
< 
