function theme_getid3_sample_rate in getID3() 7.2
Same name and namespace in other branches
- 7 getid3.module \theme_getid3_sample_rate()
Format an audio sample rate.
Parameters
$variables: Array with 'sample_rate' key.
2 theme calls to theme_getid3_sample_rate()
- getid3_metadata_audio_sample_rate::render in includes/
handlers/ getid3_metadata_audio_sample_rate.inc - Render the field.
- getid3_tokens in ./
getid3.tokens.inc - Implements hook_tokens().
File
- ./
getid3.module, line 312
Code
function theme_getid3_sample_rate($variables) {
return t('@sampleratekHz', array(
'@samplerate' => (int) ($variables['sample_rate'] / 1000),
));
}