[drupal-devel] menu system idea
killesreiter at physik.uni-freiburg.de
Sun Jun 19 04:40:26 UTC 2005
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 =>
I don't know why, but I think that nested arrays make the code more
difficult to read.
More information about the drupal-devel