Bèr is working on the Sympal Theme, an admin theme with special names for regions. Since it is an admin theme, it would be neat if Drupal Administration Menu could be enabled from within the theme.

Instead of placing a block in a particular region, Admin Menu shall be activated with a hook.

Since there is no trivial block_load() function, my first idea was to use drupal_set_content() to define a new region 'admin_menu' that is afterwards loaded with drupal_get_content('admin_menu') from within the theme.

Tinkering about direct access lead me to simply use module_invoke(). Not sure, if that function is available at theme level, but in template.php it is, IIRC.

Any other suggestions?

If someone wants to work on this issue, please leave a follow up.

Comments

sun’s picture

StatusFileSize
new1.26 KB

The latter way seemed quite easy, so I hacked a bit.

Patch implements a function for usage of module_invoke() at theme level.

sun’s picture

Status: Active » Needs review
sun’s picture

Version: 4.7.x-1.0 » 7.x-3.x-dev
StatusFileSize
new1.09 KB

Keeping up with HEAD.

sun’s picture

Status: Needs review » Postponed

Since I have no response yet from Bèr, I'm setting this to postponed.

sun’s picture

Version: 7.x-3.x-dev » 5.x-1.x-dev
sun’s picture

Status: Postponed » Closed (duplicate)

Marking as duplicate of http://drupal.org/node/179648