public function Gardener::delete in Backup and migrate prune 7
Same name and namespace in other branches
- 7.2 class/Gardener.php \Gardener::delete()
Delete the gardener from the persistent storage
File
- class/
Gardener.php, line 121 - Gardener class implementation file
Class
- Gardener
- Gardener class implementation
Code
public function delete() {
$deleted = db_delete('backup_migrate_gardener')
->condition('gardener_id', $this
->getId())
->execute();
if ($deleted) {
drupal_set_message(t('Your gardener has been deleted successfully.'));
}
else {
drupal_set_message(t('There was an error deleting your gardener'), 'error');
}
}