You are here

function blockreference_field_formatter_info in Block reference 6

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

Implementation of hook_field_formatter_info().

File

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

Code

function blockreference_field_formatter_info() {
  return array(
    'default' => array(
      'label' => t('Default'),
      'field types' => array(
        'blockreference',
      ),
      'multiple values' => CONTENT_HANDLE_CORE,
    ),
    'without_title' => array(
      'label' => t('Normal, without title'),
      'field types' => array(
        'blockreference',
      ),
      'multiple values' => CONTENT_HANDLE_CORE,
    ),
    'plain' => array(
      'label' => t('Plain (info)'),
      'field types' => array(
        'blockreference',
      ),
      'multiple values' => CONTENT_HANDLE_CORE,
    ),
    'title' => array(
      'label' => t('Title only'),
      'field types' => array(
        'blockreference',
      ),
      'multiple values' => CONTENT_HANDLE_CORE,
    ),
  );
}