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

markus_petrux’s picture

Status: Active » Fixed

You 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.

Status: Fixed » Closed (fixed)

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