1 field_permission_example.module | field_permission_example_field_info() |
Implements hook_field_info().
Provides the description of the field.
Related topics
File
- modules/
examples/ field_permission_example/ field_permission_example.module, line 167 - Hook implementations for the Field Permission Example module.
Code
function field_permission_example_field_info() {
return array(
// We name our field as the associative name of the array.
'field_permission_example_fieldnote' => array(
'label' => t('Fieldnote'),
'description' => t('Place a note-taking field on entities, with granular permissions.'),
'default_widget' => 'field_permission_example_widget',
'default_formatter' => 'field_permission_example_formatter',
),
);
}