function nodeblock_type_enabled in Nodeblock 7
Same name and namespace in other branches
- 5 nodeblock.module \nodeblock_type_enabled()
- 6 nodeblock.module \nodeblock_type_enabled()
Utility function to tell whether a type is enabled as a node block.
11 calls to nodeblock_type_enabled()
- nodeblock_block_info in ./
nodeblock.module - Implements hook_block_info().
- nodeblock_block_view in ./
nodeblock.module - Implements hook_block_view().
- nodeblock_form_node_form_alter in ./
nodeblock.module - Implements hook_form_node_form_alter().
- nodeblock_form_node_type_form_alter in ./
nodeblock.module - Implements hook_form_node_type_form_alter().
- nodeblock_node_insert in ./
nodeblock.module - Implements hook_node_insert().
File
- ./
nodeblock.module, line 35 - Enables use of specified node types as custom blocks.
Code
function nodeblock_type_enabled($type) {
return variable_get('nodeblock_' . $type, 0);
}