You are here

function multiblock_delete in MultiBlock 5

Same name and namespace in other branches
  1. 6 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 209

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;
  }
}