function media_acquiadam_browser_theme in Media: Acquia DAM 7
Implements hook_theme().
File
- modules/
media_acquiadam_browser/ includes/ media_acquiadam_browser.theme.inc, line 11 - Theme hooks and implementations.
Code
function media_acquiadam_browser_theme($existing, $type, $theme, $path) {
$ret = [];
// A singular asset as displayed on the Media Browser form.
$ret['media_acquiadam_browser_asset'] = [
'variables' => [
'asset' => NULL,
'thumbnail' => NULL,
],
'template' => 'media-acquiadam-browser-asset',
'path' => $path . '/templates',
];
// The breadcrumb trail used to navigate folders.
$ret['media_acquiadam_browser_trail'] = [
'variables' => [
'assets' => [],
'title' => t('Trail'),
],
];
// The menu displayed with each asset in the browser.
$ret['media_acquiadam_browser_jump_list'] = [
'variables' => [
'asset' => NULL,
],
];
// Individual menu items displayed in the browser.
$ret['media_acquiadam_browser_jump_list_item'] = [
'variables' => [
'icon' => '',
'label' => NULL,
],
];
// The asset information modal content.
$ret['media_acquiadam_browser_info_modal'] = [
'variables' => [
'asset' => NULL,
],
'template' => 'media-acquiadam-browser-info-modal',
'path' => $path . '/templates',
];
return $ret;
}