Closed (fixed)
Project:
Embedded Media Field
Version:
6.x-2.4
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
11 Apr 2011 at 18:48 UTC
Updated:
20 May 2011 at 15:41 UTC
The admin menu shows up in the embedded video modal popup, pushing the video out of the way.
The function to use to suppress the admin menu is admin_suppress().
However, it doesn't work in preprocess_page for emvideo modal, nor in module_preprocess_emvideo_modal_iframe, nor in other places I tried it in various emfield-modal-related files, like the tpl.php file.
After experimentation and no success, I just patched emvideo. I'll let others discuss whether or not it's best practice to put this in emvideo core, but at least there should be a hook for the modal pop-up where I'm calling admin_suppress() so we can allow things that need to be called so early in the stack to get called.
| Comment | File | Size | Author |
|---|---|---|---|
| suppress_admin.patch | 586 bytes | glass.dimly |
Comments
Comment #1
aaron commentedused module_invoke_all('suppress') instead, so we get admin menu as well. thanks, @glass.dimly!