For example, here's a snippet form the Comments Module (comment.module):
function comment_menu() {
$items['comment/%'] = array(
'title' => 'Comment permalink',
'page callback' => 'comment_permalink',
'page arguments' => array(1),
'access arguments' => array('access comments'),
);
$items['comment/reply/%node'] = array(
'title' => 'Add new comment',
'page callback' => 'comment_reply',
'page arguments' => array(2),
'access callback' => 'node_access',
'access arguments' => array('view', 2),
'file' => 'comment.pages.inc',
);
return $items;
}
How can I override $items['comment/%']
with $items['comment/reply/%node']
, without hacking core.
In other words, I need example.com/comment/[cid]
to look exactly like example.com/comment/reply/[nid]/[cid]
?