11 Jun
2008
11 Jun
'08
8:03 p.m.
On Wed, Jun 11, 2008 at 9:20 AM, Lluís <enboig@gmail.com> wrote:
at last I found the correct callback:
$items[] = array('path' => 'comptacau/moviments/ingressos/afegir', 'title' => t('Afegir un ingrés'), 'callback' => 'node_add', 'callback arguments' => 'comptacau-ingres', 'access' => true, 'type' => MENU_NORMAL_ITEM);
Shouldn't callback arguments be an array rather than a string? http://api.drupal.org/api/function/hook_menu/5 andrew