function filefield_sources_theme in FileField Sources 8
Same name and namespace in other branches
- 6 filefield_sources.module \filefield_sources_theme()
- 7 filefield_sources.module \filefield_sources_theme()
Implements hook_theme().
File
- ./
filefield_sources.module, line 48 - Extend FileField to allow files from multiple sources.
Code
function filefield_sources_theme() {
$theme = [];
$theme['filefield_sources_element'] = [
'render element' => 'element',
];
$theme['filefield_sources_list'] = [
'variables' => [
'id' => NULL,
'sources' => NULL,
],
];
return $theme;
}