function BlockCacheAlter::_getRecordFromCacheBlockTable in Block Cache Alter 6
Helper function to get a record from cache_block table.
Parameters
int $delta The delta of the block.:
Return value
stdClass $cache A complete cache object.
2 calls to BlockCacheAlter::_getRecordFromCacheBlockTable()
- BlockCacheAlter::testPatchedBlockModule in ./
blockcache_alter.test - Extra tests when the block module is patched.
- BlockCacheAlter::testSimpleCacheRefreshments in ./
blockcache_alter.test - Test simple cache changes with clear cache option (only block or page).
File
- ./
blockcache_alter.test, line 79 - Tests for Block Cache Alter
Class
- BlockCacheAlter
- @file Tests for Block Cache Alter
Code
function _getRecordFromCacheBlockTable($delta) {
$cache = db_fetch_object(db_query("SELECT * FROM {cache_block} WHERE cid = '%s'", 'block:' . $delta . ':garland'));
return $cache;
}