You are here

function scald_field_extra_fields in Scald: Media Management made easy 7

Implements hook_field_extra_fields().

File

./scald.module, line 1937
The Scald Core, which handles all Scald Registries and dispatch.

Code

function scald_field_extra_fields() {
  $extra = array();
  foreach (scald_types() as $slug => $type) {
    $extra['scald_atom'][$slug] = array(
      'form' => array(
        'title' => array(
          'label' => t('Title'),
          'description' => t('Atom title - Scald module element'),
          'weight' => -5,
        ),
      ),
      'display' => array(
        'atom' => array(
          'label' => t('Atom'),
          'description' => t('Scald atom principal element'),
          'weight' => -2,
        ),
      ),
    );
  }
  return $extra;
}