[development] hook_menu vs path alias Drupal 7
Deva
devendra.in at gmail.com
Thu Feb 17 13:41:21 UTC 2011
Hi All,
I am developing a site in Drupal 7. I have a node with alias /article/hello
I also have a hook_menu with "/article/hello" path registered in my module.
When i access the path in browser http://localhost/article/hello it shows
the node instead of calling "my_custom_function".
$items['article/hello'] = array(
'title' => 'Hello World',
'description' => 'Hello world',
'page callback' => 'my_custom_function',
'access arguments' => array('access content'),
'type' => MENU_CALLBACK,
);
I want 'my_custom_function' to get called.
Appreciate your help.
--
:DJ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20110217/80bcb7ee/attachment.html
More information about the development
mailing list