I really like the "Include new fieldsets in vertical tabs by default." setting. But when content_profile is showing some of its fields on registration form, and vtabs are disabled for registration form, all the fieldsets on registration form are turned into vertical tabs. And there is no obvious way to disable vtabs for registration in that use case - vtabs are included for profile_node_form form id, not user_registration form id. I think that is not very logical. I had to add such code to init() hook of custom module to disable vtabs on registration:

  global $conf;
  $conf['vertical_tabs_forms']['profile_node_form'] = array('account' => FALSE, 'group_profile' => FALSE, 'apply_for_role' => FALSE);

Please tell me if there are better ways to deal with this issue.
Thanks in advance!

Comments

alexkb’s picture

Thanks restyler for this fix!

If you have other tabs you want to stop vertical_tabs from being applied, in your modules form_alter, echo out the $form, and look for the field key and set that to false in the array restyler sets too. I'm using the domain module, so to disable vertical tabs, I just did:

global $conf;
$conf['vertical_tabs_forms']['contact_node_form'] = array(
  'account' => FALSE, 
  'group_profile' => FALSE, 
  'apply_for_role' => FALSE,
  'domain_user' => FALSE,
);

Cheers.

mrfelton’s picture

I think the Form module can help here too.