You are here

function multiblock_delete in MultiBlock 6

Same name and namespace in other branches
  1. 5 multiblock.module \multiblock_delete()
  2. 7 multiblock.module \multiblock_delete()

Delete a multiblock instance.

1 call to multiblock_delete()
multiblock_delete_form_submit in ./multiblock.module

File

./multiblock.module, line 213

Code

function multiblock_delete($multiblock_delta) {
  $result = db_query('DELETE FROM {multiblock} WHERE delta = %d', (int) $multiblock_delta);
  if (ctype_digit($multiblock_delta) && db_affected_rows() == 1) {
    _block_rehash();
    return TRUE;
  }
  else {
    return FALSE;
  }
}