function signaturefield_field_widget_info in SignatureField 7
Same name and namespace in other branches
- 7.2 includes/field.inc \signaturefield_field_widget_info()
Implements hook_field_widget_info().
Three widgets are provided.
- A simple text-only widget where the user enters the '#ffffff'.
- A 3-textfield widget that gathers the red, green, and blue values separately.
- A farbtastic colorpicker widget that chooses the value graphically.
These widget types will eventually show up in hook_field_widget_form, where we will have to flesh them out.
See also
signaturefield_field_widget_form()
File
- includes/
field.inc, line 130 - Content module integration.
Code
function signaturefield_field_widget_info() {
return array(
// The machine name of the widget, no more than 32
// characters.
'signaturefield_default' => array(
// The human-readable label of the field that will be
// seen in the Manage fields screen.
'label' => t('Signature field widget'),
// An array of the field types this widget can be
// used with.
'field types' => array(
'signaturefield',
),
),
);
}