You are here

function blockreference_field_formatter_info in Block reference 7.2

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

Implements hook_field_formatter_info().

File

./blockreference.field.inc, line 75

Code

function blockreference_field_formatter_info() {
  $base = array(
    'field types' => array(
      'blockreference',
    ),
    'settings' => array(
      'show_empty_blocks' => FALSE,
    ),
  );
  return array(
    'blockreference_default' => array(
      'label' => t('Default (title and content)'),
      'description' => t('Display the title and content of a block.'),
    ) + $base,
    'blockreference_without_title' => array(
      'label' => t('Content only'),
      'description' => t('Display the content of a block.  Do not display the title.'),
    ) + $base,
    'blockreference_title' => array(
      'label' => t('Title only'),
      'description' => t('Display the title of a block.  Do not display the content.'),
    ) + $base,
    'blockreference_plain' => array(
      'label' => t('Info'),
      'description' => t('Display the info text of a block.'),
    ) + $base,
    'blockreference_config_link' => array(
      'label' => t('Link to configuration'),
      'description' => t('Link to configure the block'),
      'field types' => array(
        'blockreference',
      ),
      'settings' => array(
        'label' => 'default',
        'custom_label' => '',
        'destination' => 1,
      ),
    ),
  );
}