function field_permission_example_field_info

Implements hook_field_info().

Provides the description of the field.

Related topics

File

field_permission_example/field_permission_example.module, line 175

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',
        ),
    );
}