You are here

function filefieldmp3player_field_formatter_info in MP3 Player 7.2

Same name and namespace in other branches
  1. 6.2 filefieldmp3player/filefieldmp3player.module \filefieldmp3player_field_formatter_info()
  2. 6 filefieldmp3player/filefieldmp3player.module \filefieldmp3player_field_formatter_info()

Implementation of hook_field_formatter_info().

File

filefieldmp3player/filefieldmp3player.module, line 7

Code

function filefieldmp3player_field_formatter_info() {
  $formatters = array();
  $players = mp3player_players();
  foreach ($players as $player) {
    $formatters['mp3player'] = array(
      'label' => t('MP3 Player'),
      'field types' => array(
        'file',
      ),
      'settings' => array(
        'player_instance' => 1,
      ),
    );
  }
  return $formatters;
}