block_box_get

Versions
4.6 – 6
block_box_get($bid)

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 functions call block_box_get()

block_block in modules/block/block.module
Implementation of hook_block().
block_box_delete in modules/block/block.admin.inc
Menu callback; confirm deletion of custom blocks.

Code

modules/block/block.module, line 313

<?php
function block_box_get($bid) {
  return db_fetch_array(db_query("SELECT * FROM {boxes} WHERE bid = %d", $bid));
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.