In 'mymodule', i try to override a menu url with hook_menu_alter, like this :
global $base_url; $items['node/%node/delete'] = array( 'page arguments' => array('myfunction', 1), 'file' => $base_url .'/'. drupal_get_path('module', 'mymodule') .'/includes/custom_node_delete_confirm.inc', );
I have an error because the file path is relative and begins with a "/"
Failed opening required '/http://localhost/mysite/sites/all/modules/mymodule/includes/custom_node_delete_confirm.inc'
and this doesn't work too:
'file' => 'includes/custom_node_delete_confirm.inc'
How can i do this ? Thank You