You are here

function theme_getid3_sample_rate in getID3() 7

Same name and namespace in other branches
  1. 7.2 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_handler_field_sample_rate::render in includes/getid3_handler_field_sample_rate.inc
Render the field.
getid3_tokens in ./getid3.tokens.inc
Implements hook_tokens().

File

./getid3.module, line 268

Code

function theme_getid3_sample_rate($variables) {
  return t('@sampleratekHz', array(
    '@samplerate' => (int) ($variables['sample_rate'] / 1000),
  ));
}