You are here

function recipe_metadata_field_ingredient_name_set in Recipe 7.2

Callback for setting the ingredient iid of ingredient fields.

See also

recipe_metadata_field_ingredient_property_callback()

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

File

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

Code

function recipe_metadata_field_ingredient_name_set(&$data, $name, $value, $langcode, $type, $info) {
  $data['iid'] = recipe_ingredient_id_from_name($value);
}