Omer
Omer

Reputation: 592

How do I replace the "node view" screen in Drupal 6?

I have no need for the node "view" screen/tab for certain types of content.
Instead, when a user goes into /node/nid I wish to show the node edit form.

Any ideas on how I do that?

thanks,
Omer.

Upvotes: 0

Views: 318

Answers (1)

googletorp
googletorp

Reputation: 33265

A way to do it, would be to use hook_menu_alter to change the node/[nid] menu item and call you own function. In that function you could check the node type and either call the function used to display the node or the one used to display the node form.

Upvotes: 1

Related Questions