1 field_permission_example.module field_permission_example_field_info()

Implements hook_field_info().

Provides the description of the field.

Related topics


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


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',