function nodeblock_type_view_mode in Nodeblock 7
Utility function to retrieve default view mode.
3 calls to nodeblock_type_view_mode()
- nodeblock_block_view in ./
nodeblock.module - Implements hook_block_view().
- nodeblock_form_node_type_form_alter in ./
nodeblock.module - Implements hook_form_node_type_form_alter().
- _nodeblock_defaults in ./
nodeblock.module - Returns an array with default nodeblock settings for a node.
File
- ./
nodeblock.module, line 42 - Enables use of specified node types as custom blocks.
Code
function nodeblock_type_view_mode($type) {
return variable_get('nodeblock_view_mode_' . $type, 'full');
}