function recipe_metadata_field_ingredient_units in Recipe 7.2
Callback for getting the list of unit names for an ingredient field.
See also
recipe_metadata_field_ingredient_property_callback()
1 string reference to 'recipe_metadata_field_ingredient_units'
- recipe_metadata_field_ingredient_property_callback in ./
recipe.module - Callback to alter the property info of ingredient fields.
File
- ./
recipe.module, line 864 - Contains functions for Recipe node CRUD and display.
Code
function recipe_metadata_field_ingredient_units() {
$units = array();
foreach (recipe_get_units() as $key => $unit_data) {
$units[$key] = $unit_data['name'];
}
return $units;
}