You are here

function atom_reference_field_formatter_info in Scald: Media Management made easy 6

Same name and namespace in other branches
  1. 7 modules/fields/atom_reference/atom_reference.module \atom_reference_field_formatter_info()

Implements hook_field_formatter_info().

File

atom_reference/atom_reference.module, line 115
Defines a new field type, allowing to directly reference Scald Atoms from a node.

Code

function atom_reference_field_formatter_info() {
  return array(
    'default' => array(
      'label' => 'Title',
      'field types' => array(
        'atom_reference',
      ),
      'multiple values' => CONTENT_HANDLE_CORE,
    ),
    'library' => array(
      'label' => 'Library',
      'field types' => array(
        'atom_reference',
      ),
      'multiple values' => CONTENT_HANDLE_CORE,
    ),
    'editor' => array(
      'label' => 'Editor',
      'field types' => array(
        'atom_reference',
      ),
      'multiple values' => CONTENT_HANDLE_CORE,
    ),
  );
}