19 Jun
2005
19 Jun
'05
6:40 a.m.
On Sun, 19 Jun 2005, Adrian Rossouw wrote:
Instead of defining menu's as we do now (using 'path' => ) , why don't we skip the entire building a tree thing and just define the menu entries as trees to begin with?
ie : $menu['node']['add']['blog'][ITEM] = array(title => t('blog entry'), access => user_access('edit own blog')); $menu['blog'][ITEM] = array(title => t('blogs'), callback => 'blog_page', access => user_access('access content'), type => MENU_SUGGESTED_ITEM);
I don't know why, but I think that nested arrays make the code more difficult to read. Cheers, Gerhard