Content type term reference field selected or populated from URL parameter I need to be able to click on a link, that goes to node/add/example. and populate a term reference field with a URL parameter. I thought i could be able to do this through the default value, but i guess it isn't possible. Anyone have any other ideas to try?
For drupal 6:You can put a link using following code in your node.

function hook_link($type, $object, $teaser = FALSE) {
  $link = array();

  if ($type == 'node') {
    $link['yourlinkname'] = array(
      'title' =&gt; t('Your link'),
      'href' =&gt; 'node/add/example',
      'attributes' =&gt; array(
        'title' =&gt; 'Your link',
      ),
    );
  }
  return $link;
}


For drupal 7:You can put a link using following code in your node.

function hook_node_view_alter(&amp;$build)
{
   $build['links']['node']['#links']['example-mylink'] = array(
    'title' =&gt; t('Your linkname'), 
    'href' =&gt; 'node/add/example', 
    'html' =&gt; TRUE, 
    'attributes' =&gt; array(
      'title' =&gt; 'Your link',
      ),
   );
}