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.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | admin_menu.module.patch | 1.09 KB | sun |
| #1 | admin_menu.module.inject.patch | 1.26 KB | sun |
Comments
Comment #1
sunThe latter way seemed quite easy, so I hacked a bit.
Patch implements a function for usage of module_invoke() at theme level.
Comment #2
sunComment #3
sunKeeping up with HEAD.
Comment #4
sunSince I have no response yet from Bèr, I'm setting this to postponed.
Comment #5
sunComment #6
sunMarking as duplicate of http://drupal.org/node/179648