How do i get the node id using menu_hook Hi I try to get the node id when user edit the node by the code below:

       function test_plugin_menu(){
            $item = array();
            $item['node/%/edit'] = array(
                'page callback' =&gt; 'test_plugin',
                'page arguments' =&gt; array(1),
                'access callback' =&gt; TRUE,
                'type' =&gt;  MENU_LOCAL_TASK,
            );
            return $item; 
        }

        function test_plugin($node_id){
              dpm($node_id); 
         }


I get into a blank page when i edit a node. Please help, thank you !
Although you pass a node id into the url, it get's converted to a fully loaded node by the time your callback function is called. You could read up on it on the documentation page for hook_menu, under section Auto-Loader Wildcards.

In node.module you will see this menu item for node edit:

$items['node/%node/edit']


Now, the path you are trying to register already exists in the node module, so that is where the WSOD comes from. You need to do a hook_menu_alter on it, or perhaps hook_form_alter if all you want to do is alter the node edit form.