Closed (duplicate)
Project:
Location
Version:
5.x-2.7
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Jan 2008 at 20:08 UTC
Updated:
21 Jan 2008 at 02:31 UTC
When a content type is set to only accept a single location, the module still wraps the fields inside an extra fieldset, which seems excessive. Here's what I did to fix it. On lines 693-703, add a condition check, to get:
if ($location_form_count > 1) {
for ($index = 0; $index < $location_form_count; $index++) {
$form['locations'][$index] = array_merge(
is_array($form['locations'][$index]) ? $form['locations'][$index] : array(),
array(
'#type' => 'fieldset',
'#title' => t('Location #%number', array('%number' => $index + 1)),
'#tree' => TRUE,
'#attributes' => array('class' => 'location')
)
);
}
}
Comments
Comment #1
bdragon commentedMarking as duplicate of http://drupal.org/node/160443.
Please follow up there.
Thanks!
--Bdragon