You are here

function html5_media_field_formatter_info in HTML5 Media 7

Implements hook_field_formatter_info().

File

./html5_media.module, line 300

Code

function html5_media_field_formatter_info() {
  return array(
    'html5_player' => array(
      'label' => t('Media Player'),
      'description' => t('Play this file within a Media Player.'),
      'field types' => array(
        'file',
        'text',
      ),
      'settings' => array(
        'template' => 'default',
        'preload' => TRUE,
        'autoplay' => FALSE,
        'loop' => FALSE,
        'width' => '100%',
        'height' => '400px',
        'volume' => 80,
        'sources' => FALSE,
        'debug' => FALSE,
      ),
    ),
  );
}