You are here

function field_permission_example_field_info in Examples for Developers 7

Implements hook_field_info().

Provides the description of the field.

Related topics

File

field_permission_example/field_permission_example.module, line 175
An example field using the Field Types API.

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