function recipe_metadata_field_ingredient_unit_set in Recipe 7.2
Callback for setting the unit key of ingredient fields.
See also
recipe_metadata_field_ingredient_property_callback()
1 string reference to 'recipe_metadata_field_ingredient_unit_set'
- recipe_metadata_field_ingredient_property_callback in ./
recipe.module - Callback to alter the property info of ingredient fields.
File
- ./
recipe.module, line 886 - Contains functions for Recipe node CRUD and display.
Code
function recipe_metadata_field_ingredient_unit_set(&$data, $name, $value, $langcode, $type, $info) {
$data['unit_key'] = $value;
}