You are here

function mp3player_title_callback in MP3 Player 6

Same name and namespace in other branches
  1. 6.2 mp3player.module \mp3player_title_callback()
  2. 7.2 mp3player.module \mp3player_title_callback()

Custom titles for certain pages.

1 string reference to 'mp3player_title_callback'
mp3player_menu in ./mp3player.module
Implementation of hook_menu().

File

./mp3player.module, line 120
mp3player main module file.

Code

function mp3player_title_callback($title, $pid = 0) {
  $replacements = array();
  $player = mp3player_players($pid);
  $replacements['!name'] = $player['name'];
  return t($title, $replacements);
}