The hook_menu implements only the 'page callback', 'access callback' and 'access arguments'.
It would be nice if we could pass the page arguments too. =)
I've managed to get it working with:
<?php
$items[$class_name::getPath()] = array_merge(
array(
'page callback' => $class_name . '::pageCallback',
'access callback' => 'cool_default_page_access_callback',
'access arguments' => array($class_name),
), $class_name::getDefinition()
);
if (method_exists($class_name, 'getPageArguments')) {
$items[$class_name::getPath()]['page arguments'] = $class_name::getPageArguments();
}
?>
=)
Comments
Comment #3
pedrorocha commentedFixed on 2.0 release