function _nodeblock_defaults in Nodeblock 7
Returns an array with default nodeblock settings for a node.
1 call to _nodeblock_defaults()
- _nodeblock_prepare_nodeblock in ./
nodeblock.module  - Helper function to prepare the nodeblock data before insert/update.
 
File
- ./
nodeblock.module, line 89  - Enables use of specified node types as custom blocks.
 
Code
function _nodeblock_defaults($type) {
  return array(
    'enabled' => TRUE,
    'view_mode' => nodeblock_type_view_mode($type),
    'node_link' => nodeblock_type_node_link($type),
    'comment_link' => nodeblock_type_comment_link($type),
    'translation_fallback' => 0,
  );
}