function signaturefield_field_formatter_info in SignatureField 6
Same name and namespace in other branches
- 7.2 includes/field.inc \signaturefield_field_formatter_info()
- 7 includes/field.inc \signaturefield_field_formatter_info()
Implementation of hook_field_formatter_info().
All fields should have a 'default' formatter. Any number of other formatters can be defined as well. It's nice for there always to be a 'plain' option for the raw value, but that is not required.
File
- modules/
content.inc, line 204 - Content module integration.
Code
function signaturefield_field_formatter_info() {
return array(
// The machine name of the formatter.
'default' => array(
// The human-readable label shown on the Display
// fields screen.
'label' => t('Signature image'),
// An array of the field types this formatter
// can be used on.
'field types' => array(
'signaturefield',
),
// CONTENT_HANDLE_CORE: CCK will pass the formatter
// a single value.
// CONTENT_HANDLE_MODULE: CCK will pass the formatter
// an array of all the values. None of CCK's core
// formatters use multiple values, that is an option
// available to other modules that want it.
'multiple values' => CONTENT_HANDLE_CORE,
),
);
}