function ingredient_theme in Recipe 8.2
Implements hook_theme().
File
- modules/
ingredient/ ingredient.module, line 14 - Contains basic functions for the Ingredient module.
Code
function ingredient_theme($existing, $type, $theme, $path) {
return [
'ingredient' => [
'render element' => 'elements',
],
'ingredient_formatter' => [
'variables' => [
'ingredient' => NULL,
'url' => NULL,
'name' => NULL,
'quantity' => 0,
'unit_name' => '',
'unit_abbreviation' => '',
'unit_display' => 0,
'note' => '',
],
],
];
}