function _nodeblock_table_exists in Nodeblock 7
Checks if the nodeblock table exists (legacy).
4 calls to _nodeblock_table_exists()
- nodeblock_block_info in ./
nodeblock.module - Implements hook_block_info().
- nodeblock_block_view in ./
nodeblock.module - Implements hook_block_view().
- nodeblock_node_delete in ./
nodeblock.module - Implements hook_node_delete().
- nodeblock_node_load in ./
nodeblock.module - Implements hook_node_load().
File
- ./
nodeblock.module, line 465 - Enables use of specified node types as custom blocks.
Code
function _nodeblock_table_exists() {
$tbl_exists = variable_get('nodeblock_table_exists', FALSE);
if (!$tbl_exists) {
$tbl_exists = db_table_exists('nodeblock');
variable_set('nodeblock_table_exists', $tbl_exists);
}
return $tbl_exists;
}