You are here

function nodereference_field_formatter_info in Content Construction Kit (CCK) 6

Same name and namespace in other branches
  1. 5 nodereference.module \nodereference_field_formatter_info()
  2. 6.3 modules/nodereference/nodereference.module \nodereference_field_formatter_info()
  3. 6.2 modules/nodereference/nodereference.module \nodereference_field_formatter_info()

Implementation of hook_field_formatter_info().

File

modules/nodereference/nodereference.module, line 190
Defines a field type for referencing one node from another.

Code

function nodereference_field_formatter_info() {
  return array(
    'default' => array(
      'label' => t('Title (link)'),
      'field types' => array(
        'nodereference',
      ),
      'multiple values' => CONTENT_HANDLE_CORE,
    ),
    'plain' => array(
      'label' => t('Title (no link)'),
      'field types' => array(
        'nodereference',
      ),
      'multiple values' => CONTENT_HANDLE_CORE,
    ),
    'full' => array(
      'label' => t('Full node'),
      'field types' => array(
        'nodereference',
      ),
      'multiple values' => CONTENT_HANDLE_CORE,
    ),
    'teaser' => array(
      'label' => t('Teaser'),
      'field types' => array(
        'nodereference',
      ),
      'multiple values' => CONTENT_HANDLE_CORE,
    ),
  );
}