public static function BotchaFormModel::delete in BOTCHA Spam Prevention 6.2
Same name and namespace in other branches
- 6.3 model/form/botcha.form.model.inc \BotchaFormModel::delete()
- 7.2 model/botcha_form.model.inc \BotchaFormModel::delete()
- 7.3 model/form/botcha.form.model.inc \BotchaFormModel::delete()
1 call to BotchaFormModel::delete()
- BotchaFormAbstract::delete in controller/
botcha_form.controller.inc
File
- model/
botcha_form.model.inc, line 57 - Contains BotchaFormModel class.
Class
- BotchaFormModel
- @file Contains BotchaFormModel class.
Code
public static function delete($form) {
// Delete all data related to this form.
db_query("DELETE FROM {botcha_recipebook_form} WHERE form_id = '%s'", array(
$form->id,
));
db_query("DELETE FROM {botcha_form} WHERE id = '%s'", array(
$form->id,
));
}