You are here

function colorbox_field_formatter_field_formatter_info in Colorbox field formatter 7

Implements hook_field_formatter_info().

File

./colorbox_field_formatter.module, line 11
Implement a colorbox field formatter for proper links.

Code

function colorbox_field_formatter_field_formatter_info() {
  return array(
    'colorbox_field_formatter_linked' => array(
      'label' => t('Colorbox link'),
      'field types' => array(
        'text',
        'computed',
        'entityreference',
        'image',
      ),
      'settings' => array(
        'colorbox_field_formatter_image_style' => '',
        'colorbox_field_formatter_style' => 'colorbox-load',
        'colorbox_field_formatter_link_type' => 'content',
        'colorbox_field_formatter_link' => '',
        'colorbox_field_formatter_width' => '500',
        'colorbox_field_formatter_height' => '500',
        'colorbox_field_formatter_iframe' => 0,
        'colorbox_field_formatter_anchor' => '',
        'colorbox_field_formatter_class' => '',
        'colorbox_field_formatter_rel' => '',
      ),
    ),
  );
}