nodereference_field_formatter_info

Versions
5 – 6
nodereference_field_formatter_info()

Implementation of hook_field_formatter_info().

Code

contributions/cck/nodereference.module, line 132

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

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters (without spaces) shown in the image.