You are here

function recipe_load in Recipe 6

Same name and namespace in other branches
  1. 5 recipe.module \recipe_load()
  2. 7.2 recipe.module \recipe_load()
  3. 7 recipe.module \recipe_load()

Implementation of hook_load().

File

./recipe.module, line 96
recipe.module - share recipes

Code

function recipe_load($node) {
  $recipe = db_fetch_object(db_query("SELECT * FROM {recipe} WHERE nid = %d", $node->nid));
  $recipe->ingredients = recipe_load_ingredients($node);
  return $recipe;
}