You are here

public static function ScaldAtomController::getFieldDescription in Scald: Media Management made easy 7

Returns the default description for a file or image field for an atom type.

1 call to ScaldAtomController::getFieldDescription()
scald_image_scald_add_form in modules/providers/scald_image/scald_image.module
Implements hook_scald_add_form().

File

includes/ScaldAtomController.inc, line 43
This file contains the Scald Atom controller.

Class

ScaldAtomController
Controller class for Scald Atoms.

Code

public static function getFieldDescription($type, $field_name = 'scald_thumbnail') {
  $description = '';
  $field = field_info_field($field_name);
  $instance = field_info_instance('scald_atom', $field_name, $type);
  if ($field && $instance) {
    $description = $instance['description'];
  }
  return $description;
}