You are here

function link_field_formatter_info in Link 6.2

Same name and namespace in other branches
  1. 5 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 388
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',
      ),
      'multiple values' => CONTENT_HANDLE_CORE,
    ),
    'title_plain' => array(
      'label' => t('Title, as plain text'),
      'field types' => array(
        'link',
      ),
      'multiple values' => CONTENT_HANDLE_CORE,
    ),
    'url' => array(
      'label' => t('URL, as link'),
      'field types' => array(
        'link',
      ),
      'multiple values' => CONTENT_HANDLE_CORE,
    ),
    'plain' => array(
      'label' => t('URL, as plain text'),
      'field types' => array(
        'link',
      ),
      'multiple values' => CONTENT_HANDLE_CORE,
    ),
    'absolute' => array(
      'label' => t('URL, as absolute URL'),
      'field types' => array(
        'link',
      ),
      'multiple values' => CONTENT_HANDLE_CORE,
    ),
    'short' => array(
      'label' => t('Short, as link with title "Link"'),
      'field types' => array(
        'link',
      ),
      'multiple values' => CONTENT_HANDLE_CORE,
    ),
    'label' => array(
      'label' => t('Label, as link with label as title'),
      'field types' => array(
        'link',
      ),
      'multiple values' => CONTENT_HANDLE_CORE,
    ),
    'separate' => array(
      'label' => t('Separate title and URL'),
      'field types' => array(
        'link',
      ),
      'multiple values' => CONTENT_HANDLE_CORE,
    ),
  );
}