You are here

function boxes_uninstall in Boxes 7

Same name and namespace in other branches
  1. 6 boxes.install \boxes_uninstall()
  2. 7.2 boxes.install \boxes_uninstall()

Implements hook_uninstall().

File

./boxes.install, line 68
Install, update and uninstall functions for the boxes module.

Code

function boxes_uninstall() {
  $result = db_query("SELECT bid FROM {block} WHERE module='boxes'");
  foreach ($result as $data) {
    db_query("DELETE FROM {block} WHERE bid = :bid", array(
      ':bid' => $data->bid,
    ));
  }
  variable_del('boxes_edit_location');
}