How to wrap address field output in fieldset?

aread22 - February 16, 2009 - 23:25
Project:Addresses
Version:6.x-1.x-dev
Component:User interface
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hello,

I was wondering how I could go about wrapping a fieldset around the output of addresses for a create/edit form?

I found that if I edit the function _addresses_addressesfieldapi_form in addresses.settings.inc and add an array like so

$form['address'] = array (
'#type' => 'fieldset',
'#title' => t('Address'),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
);

and then add all the elements of address to the array that it would work, but I would rather not touch the modules files and instead override it from my template.php, I just don't know how..an example would be great.

Thanks

#1

dboulet - July 22, 2009 - 21:01

You could do this by adding your field to a group.

 
 

Drupal is a registered trademark of Dries Buytaert.