Implements hook_field_formatter_info().

We need to tell Drupal about our excellent field formatter.

It's some text in a div, styled to look like a sticky note.

See also

field_permission_example_field_formatter_view()

Related topics

File

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

Code

function field_permission_example_field_formatter_info() {
  return array(
    // This formatter simply displays the text in a text field.
    'field_permission_example_formatter' => array(
      'label' => t('Simple text-based formatter'),
      'field types' => array(
        'field_permission_example_fieldnote',
      ),
    ),
  );
}