I'm using a node reference in a content type. The menu actually displays to whatever is the top item in the menu. I'd like to change this text to something like "SELECT A NODE TO REFERENCE". The node reference field in the content type allows for PHP snip and the expected example is,

return array (
   0 => array ('nid' => value for nid)
);

Comments

nevets’s picture

The default value should be a valid nid.

xtiansimon’s picture

But I don't want an "actual" default node reference, I want a custom default "text" in the menu display.
Get it?

nevets’s picture

Not the purpose of that field.

Drave Robber’s picture

Maybe Hint module could be useful for this purpose. That's just an API though, you'll probably still need to do some custom code.

xtiansimon’s picture

[oi]. This module already does what its supposed to do and I want what it does. If you don't know how what why or cant be bothered to understand what what, don't post just to argue with me. Its rude.[/oi]

If this was just an HTML menu the first item would be selected,

<FORM ... >
<SELECT ... >
<OPTION VALUE="" selected>Choose a Destination...
<OPTION VALUE="foo">Foo
<OPTION VALUE="bar">Bar
</SELECT>
</FORM>
WorldFallz’s picture

See http://drupal.org/node/789116#comment-3365604 for one possible solution.