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.

CommentFileSizeAuthor
suppress_admin.patch586 bytesglass.dimly

Comments

aaron’s picture

Status: Needs review » Fixed

used module_invoke_all('suppress') instead, so we get admin menu as well. thanks, @glass.dimly!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.