开发者

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

开发者 https://www.devze.com 2023-01-03 11:07 出处:网络
I have no need for the node \"view\" screen/tab fo开发者_如何学编程r certain types of content.

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

精彩评论

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