开发者

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

I have no need for the node "view" screen/tab fo开发者_如何学编程r 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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜