You are here

function _submenutree_set_block_content in Submenu Tree 5

Same name and namespace in other branches
  1. 6 submenutree.module \_submenutree_set_block_content()
  2. 7.2 submenutree.module \_submenutree_set_block_content()
  3. 7 submenutree.module \_submenutree_set_block_content()

$block should be an array like those used in hook_block ie array('subject' => 'title', 'content' => 'some content');

2 calls to _submenutree_set_block_content()
_submenutree_get_block_content in ./submenutree.module
_submenutree_menutree_view in ./submenutree.module
View the menu tree, either by poking into $node->content, or via the block functions

File

./submenutree.module, line 346

Code

function _submenutree_set_block_content($delta, $block = null) {
  static $stored_content = array(
    SUBMENUTREE_BLOCK_SUBMENU => array(),
    SUBMENUTREE_BLOCK_SIBLINGMENU => array(),
  );
  if (isset($block) && is_array($block)) {
    $stored_content[$delta] = $block;
  }
  return $stored_content[$delta];
}