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.

CommentFileSizeAuthor
phone.module_0.patch1.11 KBms2011

Comments

thierry_gd’s picture

Status: Needs review » Fixed

Just committed a new version with this

seanberto’s picture

Just 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.

thierry_gd’s picture

It is included in the version you mentioned :

....
'#size' => isset($field['widget']['size']) ? $field['widget']['size'] : 20,
'#description' => $field['widget']['description'],
);
...

Thierry

Anonymous’s picture

Status: Fixed » Closed (fixed)