function double_field_theme in Double Field 8.3
Same name and namespace in other branches
- 7.2 double_field.module \double_field_theme()
- 7 double_field.module \double_field_theme()
- 4.x double_field.module \double_field_theme()
Implements hook_theme().
File
- ./
double_field.module, line 13 - Primary module hooks for Double Field module.
Code
function double_field_theme() {
$templates = [
'item',
'subfield',
'definition_list',
'accordion',
'tabs',
];
$items = [];
foreach ($templates as $template) {
$items['double_field_' . $template] = [
'render element' => 'elements',
];
}
return $items;
}