You are here

function filefieldmp3player_field_formatter_info in MP3 Player 6.2

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

Implementation of hook_field_formatter_info().

File

filefieldmp3player/filefieldmp3player.module, line 6

Code

function filefieldmp3player_field_formatter_info() {
  $formatters = array();
  $players = mp3player_players();
  foreach ($players as $player) {
    $formatters['mp3player_' . $player['name']] = array(
      'label' => t('MP3 Player (' . $player['name'] . ')'),
      'field types' => array(
        'filefield',
      ),
    );
  }
  return $formatters;
}