You are here

function mediafront_field_formatter_info in MediaFront 6.2

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

Implementation of hook_field_formatter_info().

File

./mediafront_field.inc, line 66
Provides CCK integration for the mediafront module

Code

function mediafront_field_formatter_info() {
  $formatters = array();
  foreach (mediafront_preset_get_presets() as $preset) {
    $formatters[$preset['name'] . '_player'] = array(
      'label' => t('@preset', array(
        '@preset' => $preset['name'],
      )),
      'field types' => array(
        'mediafront',
      ),
    );
  }
  return $formatters;
}