You are here

function recipe_load_ingredient in Recipe 7.2

5 calls to recipe_load_ingredient()
merge_template in modules/recipe_mastercook4.module
recipe_field_formatter_prepare_view in ./recipe.module
Implements hook_field_formatter_prepare_view().
recipe_field_widget_form in ./recipe.module
Implements hook_field_widget_form().
recipe_plaintext_format_ingredients in modules/recipe_plaintext.module
Formats an ingredient for display as a MasterCook4 recipe.
recipe_recipeML_export_single in modules/recipe_recipeML.module

File

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

Code

function recipe_load_ingredient($iid) {
  $result = db_query("SELECT id AS iid, name, link FROM {recipe_ingredient} WHERE id = :iid", array(
    ':iid' => $iid,
  ))
    ->fetchObject();
  return $result;
}