function block_custom_block_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_custom_block_get()
block_block_configure in modules/block/block.module
Implements hook_block_configure().
block_custom_block_delete in modules/block/block.admin.inc
Form constructor for the custom block deletion form.

File

modules/block/block.module, line 503

Code

function block_custom_block_get($bid) {
    return db_query("SELECT * FROM {block_custom} WHERE bid = :bid", array(
        ':bid' => $bid,
    ))->fetchAssoc();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.