public static function BotchaRecipebookModel::delete in BOTCHA Spam Prevention 6.2
Same name and namespace in other branches
- 6.3 model/recipebook/botcha.recipebook.model.inc \BotchaRecipebookModel::delete()
- 7.2 model/botcha_recipebook.model.inc \BotchaRecipebookModel::delete()
- 7.3 model/recipebook/botcha.recipebook.model.inc \BotchaRecipebookModel::delete()
Delete recipe book from the database.
Parameters
BotchaRecipebook $recipebook:
1 call to BotchaRecipebookModel::delete()
File
- model/
botcha_recipebook.model.inc, line 70 - Contains BotchaRecipebookModel class.
Class
- BotchaRecipebookModel
- @file Contains BotchaRecipebookModel class.
Code
public static function delete($recipebook) {
db_query("DELETE FROM {botcha_recipebook_recipe} WHERE rbid = '%s'", array(
$recipebook->id,
));
db_query("DELETE FROM {botcha_recipebook_form} WHERE rbid = '%s'", array(
$recipebook->id,
));
db_query("DELETE FROM {botcha_recipebook} WHERE rbid = '%s'", array(
$recipebook->id,
));
}