You are here

function smartqueue_domain_domain_delete in Smartqueue Domain 7

Implements hook_domain_delete().

File

./smartqueue_domain.module, line 96

Code

function smartqueue_domain_domain_delete($domain, $form_values = array()) {
  $subqueues = smartqueue_domain_get_subqueues_by_domain($domain);
  if (!empty($subqueues)) {
    foreach ($subqueues as $subqueue) {
      nodequeue_remove_subqueue($subqueue->sqid);
    }
  }
}