Closed (fixed)
Project:
Explainfield CCK widget
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
10 Dec 2008 at 17:47 UTC
Updated:
2 Jan 2009 at 17:00 UTC
If you add an enclosing div wrapper around the explainfield (since it's got 2 parts), it makes theming much much easier...
Change
$form[$field['field_name']] = array('#tree' => TRUE);
to:
$form[$field['field_name']] = array(
'#tree' => TRUE,
'#prefix' => '<div id="explainfieldwrapper-'._misc_formize($field['field_name']).'">',
'#suffix' => '</div>'
);
That puts a wrapper div around both fields at once, letting you theme/control the layout/etc.
Comments
Comment #1
snufkin commentedThanks for the patches, i'll try test and commit them over the weekend.
Comment #2
snufkin commented