You are here

function mediafront_field_formatter_info in MediaFront 7

Same name and namespace in other branches
  1. 6.2 mediafront_field.inc \mediafront_field_formatter_info()
  2. 6 mediafront_field.inc \mediafront_field_formatter_info()
  3. 7.2 includes/mediafront.field.inc \mediafront_field_formatter_info()

Implements hook_field_formatter_info().

File

includes/mediafront.field.inc, line 64

Code

function mediafront_field_formatter_info() {
  $formatters = array();
  foreach (mediafront_preset_get_presets() as $preset) {
    $formatters['mediaplayer__' . $preset['name']] = array(
      'label' => t('@preset', array(
        '@preset' => $preset['name'],
      )),
      'description' => t('Allows the Media Player field to be displayed.'),
      'field types' => array(
        'mediaplayer',
      ),
    );
  }
  return $formatters;
}