block_custom_block_get
function block_custom_block_get
block_custom_block_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.
File
- modules/block/block.module, line 508
- Controls the visual building blocks a page is constructed with.
Code
function block_custom_block_get($bid) { return db_query("SELECT * FROM {block_custom} WHERE bid = :bid", array(':bid' => $bid))->fetchAssoc(); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!block!block.module/function/block_custom_block_get/7.x