You are here

function link_field_formatter_info in Link 5

Same name and namespace in other branches
  1. 6.2 link.module \link_field_formatter_info()
  2. 6 link.module \link_field_formatter_info()
  3. 7 link.module \link_field_formatter_info()

Implementation of hook_field_formatter_info().

File

./link.module, line 562
Defines simple link field types.

Code

function link_field_formatter_info() {
  return array(
    'default' => array(
      'label' => t('Title, as link (default)'),
      'field types' => array(
        'link',
      ),
    ),
    'url' => array(
      'label' => t('URL, as link'),
      'field types' => array(
        'link',
      ),
    ),
    'plain' => array(
      'label' => t('URL, plain text'),
      'field types' => array(
        'link',
      ),
    ),
    'short' => array(
      'label' => t('Short, as link with title "Link"'),
      'field types' => array(
        'link',
      ),
    ),
    'label' => array(
      'label' => t('Label, as link with label as title'),
      'field types' => array(
        'link',
      ),
    ),
    'separate' => array(
      'label' => t('Separate title and URL'),
      'field types' => array(
        'link',
      ),
    ),
  );
}