You are here

function atom_reference_field_info in Scald: Media Management made easy 7

Same name and namespace in other branches
  1. 6 atom_reference/atom_reference.module \atom_reference_field_info()

Implements hook_field_info().

File

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

Code

function atom_reference_field_info() {
  return array(
    'atom_reference' => array(
      'label' => t('Atom Reference'),
      'description' => t('This field stores the ID of a related atom as an integer value.'),
      'instance_settings' => array(
        'referencable_types' => array(),
      ),
      'default_widget' => 'atom_reference_textfield',
      'default_formatter' => 'title',
      'property_type' => 'scald_atom',
    ),
  );
}