You are here

function blockgroup_delete in Block Group 7.2

Same name and namespace in other branches
  1. 7 blockgroup.module \blockgroup_delete()

Remove the given block group form the database.

1 call to blockgroup_delete()
blockgroup_delete_confirm_submit in ./blockgroup.admin.inc
Form submission handler for blockgroup_delete_confirm().

File

./blockgroup.module, line 528
Add block groups to block configuration page

Code

function blockgroup_delete($blockgroup) {
  db_delete('block')
    ->condition('module', 'blockgroup')
    ->condition('delta', $blockgroup->delta)
    ->execute();
  db_delete('block_role')
    ->condition('module', 'blockgroup')
    ->condition('delta', $blockgroup->delta)
    ->execute();
  blockgroup_rebuild_data();
}