During the conversion of one module, I had simple menu definitions containing
'page arguments' => array($node),
which were not converted to
'page arguments' => array(1),
fyi, this was the D5 menu code:
$items[] = array(
'path' => 'node/'. arg(1) .'/html',
'title' => t('View HTML'),
'callback' => 'my_export_html',
'callback arguments' => array($node),
'type' => MENU_LOCAL_TASK,
);
Comments
Comment #1
solotandem commentedI have been aware of this all along. (Deadwood adds a comment to the file indicating user intervention is needed for these changes.)
Although the menu definitions may be "simple" to someone reading them, the possibilities for parsing are endless. With a regular expression, it is not at all easy (or feasible) to determine what arg(n) refers to or what text to replace with 1, 2, 3, etc.
If you have any suggestions, let me know.