function multiblock_delete in MultiBlock 5
Same name and namespace in other branches
- 6 multiblock.module \multiblock_delete()
- 7 multiblock.module \multiblock_delete()
Delete a multiblock instance.
1 call to multiblock_delete()
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;
}
}