function safeword_field_formatter_info in Safeword 7
Same name and namespace in other branches
- 8 safeword.module \safeword_field_formatter_info()
Implements hook_field_formatter_info().
File
- ./
safeword.module, line 285 - Provides a FieldAPI field type, widget, and several formatters for a combined human readable/machine name pair of values. Possible uses include automatic generation of editable pathauto segments, handy Views argument values, and impressing friends.
Code
function safeword_field_formatter_info() {
return array(
'safeword_human' => array(
'label' => t('Human-readable version'),
'field types' => array(
'safeword',
),
),
'safeword_machine' => array(
'label' => t('Machine-readable version wrapped in an acronym tag'),
'field types' => array(
'safeword',
),
),
'safeword_machine_basic' => array(
'label' => t('Machine-readable version'),
'field types' => array(
'safeword',
'safeword_title',
),
),
'safeword_both' => array(
'label' => t('Show both versions'),
'field types' => array(
'safeword',
),
),
);
}