You are here

function minplayer_get_sources in MediaFront 7.2

Same name and namespace in other branches
  1. 7 players/minplayer/minplayer.module \minplayer_get_sources()

Return the media source.

1 call to minplayer_get_sources()
theme_minplayer in players/minplayer/minplayer.module
Theme a minPlayer.

File

players/minplayer/minplayer.module, line 39

Code

function minplayer_get_sources($type, &$params) {
  if (isset($params['node']) && isset($params['node']['mediafiles']) && !empty($params['node']['mediafiles'][$type])) {
    return $params['node']['mediafiles'][$type];
  }
  return '';
}