You are here

function block_inject_remove_exception in Block Inject 7

Removes the exception from the database

2 calls to block_inject_remove_exception()
block_inject_delete_confirm_submit in ./block_inject.admin.inc
Callback function to delete the inject region from the database.
block_inject_node_submit in ./block_inject.module
Implements hook_node_submit().

File

./block_inject.module, line 736
The Block Inject module functions.

Code

function block_inject_remove_exception($type, $selector) {
  $db_remove = db_delete('block_inject_exceptions');
  if ($type == 'nid') {
    $db_remove
      ->condition('nid', $selector);
  }
  if ($type == 'bi_id') {
    $db_remove
      ->condition('bi_id', $selector);
  }
  $db_remove
    ->execute();
}