function recipe_theme in Recipe 8.2
Same name and namespace in other branches
- 6 recipe.module \recipe_theme()
- 7.2 recipe.module \recipe_theme()
- 7 recipe.module \recipe_theme()
Implements hook_theme().
File
- ./
recipe.module, line 20 - Contains functions for Recipe node CRUD and display.
Code
function recipe_theme($existing, $type, $theme, $path) {
return [
'ingredient_recipeml_formatter' => [
'variables' => [
'name' => NULL,
'quantity' => 0,
'unit_name' => '',
'unit_abbreviation' => '',
'unit_display' => 0,
'note' => '',
],
],
'recipe_duration' => [
'variables' => [
'duration' => 0,
],
],
'recipe_total_time' => [
'variables' => [
'total_time' => 0,
'label' => t('Total time'),
'label_display' => 'above',
],
],
'recipe_yield' => [
'variables' => [
'yield' => '',
'label' => t('Yield'),
'label_display' => 'above',
],
],
];
}