function rolereference_field_formatter_info in Role Reference 6
Same name and namespace in other branches
- 5 rolereference.module \rolereference_field_formatter_info()
- 7 rolereference.module \rolereference_field_formatter_info()
Implementation of hook_field_formatter_info().
File
- ./
rolereference.module, line 210 - Defines a field type for referencing a role. Based almost entirely on nodereference and userreference modules.
Code
function rolereference_field_formatter_info() {
return array(
'default' => array(
'label' => t('Title (no link)'),
'field types' => array(
'rolereference',
),
'multiple values' => CONTENT_HANDLE_CORE,
),
'rid' => array(
'label' => t('Role ID'),
'field types' => array(
'rolereference',
),
'multiple values' => CONTENT_HANDLE_CORE,
),
'rid_array' => array(
'label' => t('Array of Role IDs'),
'field types' => array(
'rolereference',
),
'multiple values' => CONTENT_HANDLE_MODULE,
),
);
}