block_box_get

  1. drupal
    1. drupal6
    2. drupal7
Versionen
drupal6 – drupal7 block_box_get($bid)

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

Übergabeparameter

$bid ID of the block to get information for.

Rückgabewert

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 314

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

Kommentare

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen