Closed (fixed)
Project:
Modal Frame API
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
1 Feb 2010 at 10:24 UTC
Updated:
18 Feb 2010 at 15:20 UTC
Hi,
I tried adding child css using either hook_user or hook_form but both hook methods does not not filter out the header/footers on profile edit page.
eg, hook_form
if ($form_id == 'user_profile_form' && $sub_url == "summary"){
modalframe_child_js();
drupal_set_title(t('Summary'));
unset($form['picture']['select_avatar']);
unset($form['summary']['#type']);
}
eg hook_user
if ($op == 'form' && $category == 'summary') {
modalframe_child_js();
}
I see that child.js is loaded onto the page but there seems to be a javascript error as my admin_menu didn't shows up..
Any thoughts? Thanks!
Comments
Comment #1
markus_petrux commentedYou may need to invoke modalframe_child_js() somewhere else, maybe from your hook_init() implementation. If it is not invoked during child page processing before theme('page') is executed, then the child page will not use the modal frame template.