You are here

function template_preprocess_insert_audio in Insert 7

Preprocess variables for the insert-audio.tpl.php file.

File

includes/insert.inc, line 113
Insert support for generic files.

Code

function template_preprocess_insert_audio(&$vars) {
  $vars = _insert_default_vars($vars);
  $vars['name'] = $vars['file']->filename;
  $vars['mime'] = $vars['file']->filemime;
}