[drupal-devel] menu system idea

Gerhard Killesreiter 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 =>
> MENU_SUGGESTED_ITEM);

I don't know why, but I think that nested arrays make the code more
difficult to read.

Cheers,
	Gerhard




More information about the drupal-devel mailing list