You are here

function block_box_get in Block Cache Alter 6

Same name in this branch
  1. 6 patches/block_with_node_grants.module \block_box_get()
  2. 6 patches/block_no_node_grants.module \block_box_get()

Returns information from database about a user-created (custom) block.

Parameters

$bid: ID of the block to get information for.

Return value

Associative array of information stored in the database for this block. Array keys:

  • bid: Block ID.
  • info: Block description.
  • body: Block contents.
  • format: Filter ID of the filter format for the body.
2 calls to block_box_get()
block_block in patches/block_with_node_grants.module
Implementation of hook_block().
block_block in patches/block_no_node_grants.module
Implementation of hook_block().

File

patches/block_with_node_grants.module, line 337
Controls the boxes that are displayed around the main content.

Code

function block_box_get($bid) {
  return db_fetch_array(db_query("SELECT * FROM {boxes} WHERE bid = %d", $bid));
}