Can't set default value with hook_field_widget_form_alter() function mymodule_field_widget_form_alter(&amp;$element, &amp;$form_state, $context){
if ($context['field']['type'] == 'node_reference' &amp;&amp;
  empty($element['#default_value'])) {
$element['#default_value'] = 51113;
  }
}


the above does not work - I'm simply trying to set a default value through hook_field_widget_form_alter. The hook works - I can alter options and so forth, but not the default value. Any ideas?
solved - I noticed my default values worked on node-edit forms, so I tried raising my custom module's weight, which seemed to do the trick :-)