You are here

function blockreference_field_formatter_info in Block reference 7

Same name and namespace in other branches
  1. 6 blockreference.module \blockreference_field_formatter_info()
  2. 7.2 blockreference.field.inc \blockreference_field_formatter_info()

Implements hook_field_formatter_info().

File

./blockreference.module, line 250
Defines a field type for referencing a block from a node.

Code

function blockreference_field_formatter_info() {
  $ret = array(
    'blockreference_default' => array(
      'label' => t('Default (title and content)'),
      'description' => t('Display the title and content of a block.'),
      'field types' => array(
        'blockreference',
      ),
    ),
    'blockreference_without_title' => array(
      'label' => t('Content only'),
      'description' => t('Display the content of a block.  Do not display the title.'),
      'field types' => array(
        'blockreference',
      ),
    ),
    'blockreference_title' => array(
      'label' => t('Title only'),
      'description' => t('Display the title of a block.  Do not display the content.'),
      'field types' => array(
        'blockreference',
      ),
    ),
    'blockreference_plain' => array(
      'label' => t('Info'),
      'description' => t('Display the info text of a block.'),
      'field types' => array(
        'blockreference',
      ),
    ),
  );
  return $ret;
}