You are here

function recipe_uninstall in Recipe 5

Same name and namespace in other branches
  1. 6 recipe.install \recipe_uninstall()
  2. 7.2 recipe.install \recipe_uninstall()
  3. 7 recipe.install \recipe_uninstall()

File

./recipe.install, line 150

Code

function recipe_uninstall() {
  if (db_table_exists("recipe")) {
    db_query("DROP TABLE {recipe}");
  }
  if (db_table_exists("recipe_node_ingredient")) {
    db_query("DROP TABLE {recipe_node_ingredient}");
  }
  if (db_table_exists("recipe_ingredient")) {
    db_query("DROP TABLE {recipe_ingredient}");
  }
  if (db_table_exists("recipe_unit")) {
    db_query("DROP TABLE {recipe_unit}");
  }
}