You are here

function recipe_metadata_field_ingredient_name_get in Recipe 7.2

Callback for getting the ingredient name of ingredient fields.

See also

recipe_metadata_field_ingredient_property_callback()

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

File

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

Code

function recipe_metadata_field_ingredient_name_get($data, array $options, $name, $type, $info) {
  return recipe_load_ingredient($data['iid'])->name;
}