You are here

function theme_getid3_bitrate in getID3() 7

Same name and namespace in other branches
  1. 7.2 getid3.module \theme_getid3_bitrate()

Format an audio bitrate.

Parameters

$variables: Array with 'bitrate' key.

2 theme calls to theme_getid3_bitrate()
getid3_handler_field_bitrate::render in includes/getid3_handler_field_bitrate.inc
Render the field.
getid3_tokens in ./getid3.tokens.inc
Implements hook_tokens().

File

./getid3.module, line 278

Code

function theme_getid3_bitrate($variables) {
  return t('@bitrateKbps', array(
    '@bitrate' => (int) ($variables['bitrate'] / 1000),
  ));
}