You are here

function markup_field_formatter_info in Markup 7

Implements hook_field_formatter_info().

File

./markup.module, line 30
Defines a field type for displaying markup on the node/edit form.

Code

function markup_field_formatter_info() {
  return array(
    'markup_default' => array(
      'label' => t('Edit form only'),
      'description' => t('Markup will only be displayed when a user is on the edit page.'),
      'field types' => array(
        'markup',
      ),
    ),
    'markup_display' => array(
      'label' => t('Display only'),
      'description' => t('Markup will only be displayed when a user is viewing the entity.'),
      'field types' => array(
        'markup',
      ),
    ),
    'markup_view' => array(
      'label' => t('Always visible'),
      'description' => t('Displays the markup on the edit form and on the entity display.'),
      'field types' => array(
        'markup',
      ),
    ),
  );
}