You are here

function recipe_metadata_field_ingredient_unit_get in Recipe 7.2

Callback for getting the unit name of ingredient fields.

See also

recipe_metadata_field_ingredient_property_callback()

1 string reference to 'recipe_metadata_field_ingredient_unit_get'
recipe_metadata_field_ingredient_property_callback in ./recipe.module
Callback to alter the property info of ingredient fields.

File

./recipe.module, line 877
Contains functions for Recipe node CRUD and display.

Code

function recipe_metadata_field_ingredient_unit_get($data, array $options, $name, $type, $info) {
  return recipe_metadata_field_ingredient_units()[$data['unit_key']];
}