If you have ever tried adding a description to a CCK Phone Field then you know it doesn't display.
The '#description' array key was missing from the $form element in hook_widget($op='form').
See attached for proposed solution.
| Comment | File | Size | Author |
|---|---|---|---|
| phone.module_0.patch | 1.11 KB | ms2011 |
Comments
Comment #1
thierry_gd commentedJust committed a new version with this
Comment #2
seanberto commentedJust upgraded to 5.x-2.1 version released today. Is it possible that it was committed to a different version of the module? I grepped phone.module for #description and didn't come up with anything.
Comment #3
thierry_gd commentedIt is included in the version you mentioned :
....
'#size' => isset($field['widget']['size']) ? $field['widget']['size'] : 20,
'#description' => $field['widget']['description'],
);
...
Thierry
Comment #4
(not verified) commented