public function BeanCustom::delete in Bean (for Drupal 7) 7
Delete the record from the database.
File
- bean_admin_ui/
plugins/ BeanCustom.class.php, line 15 - Bean ctools plugin
Class
- BeanCustom
- DO NOT USE THIS BEAN. ONLY USED FOR THE UI PLUGINS
Code
public function delete() {
db_delete('bean')
->condition('type', $this->type)
->execute();
ctools_include('export');
ctools_export_crud_delete('bean_type', $this->type);
field_attach_delete_bundle('bean', $this->type);
bean_reset();
}