function mediaelement_theme in MediaElement 8
Same name and namespace in other branches
- 7.2 mediaelement.module \mediaelement_theme()
- 7 mediaelement.module \mediaelement_theme()
Implements hook_theme().
File
- ./
mediaelement.module, line 11 - Primary module file.
Code
function mediaelement_theme($existing, $type, $theme, $path) {
$defaults = [
'variables' => [
'files' => [],
'attributes' => NULL,
'download_link' => FALSE,
'download_text' => '',
],
'path' => "{$path}/templates",
'preprocess functions' => [
'mediaelement_preprocess_mediaelement_file',
],
];
return [
'mediaelement_file_video' => [] + $defaults,
'mediaelement_file_audio' => [] + $defaults,
];
}