You are here

function nodeblock_type_enabled in Nodeblock 5

Same name and namespace in other branches
  1. 6 nodeblock.module \nodeblock_type_enabled()
  2. 7 nodeblock.module \nodeblock_type_enabled()

Utility function to tell whether a type is enabled as a node block

3 calls to nodeblock_type_enabled()
nodeblock_block in ./nodeblock.module
Implementation of hook_block().
nodeblock_link in ./nodeblock.module
Implementation of hook_link().
nodeblock_nodeapi in ./nodeblock.module
Implementation of hook_nodeapi().

File

./nodeblock.module, line 6

Code

function nodeblock_type_enabled($type) {
  if (is_object($type)) {
    $type = $type->type;
  }
  return variable_get('nodeblock_' . $type, 0) ? TRUE : FALSE;
}