block.module

  1. drupal
    1. drupal6
    2. drupal7

Version 1.299.2.4 (checked in on 2009/10/06 at 12:13:01 by goba)

Controls the boxes that are displayed around the main content.

Funktionen & Methoden

NameBeschreibung
block_blockImplementation of hook_block().
block_box_formDefine the custom block form.
block_box_getReturns information from database about a user-created (custom) block.
block_box_saveSaves a user-created block in the database.
block_helpImplementation of hook_help().
block_listReturn all blocks in the specified region for the current user.
block_menuImplementation of hook_menu().
block_permImplementation of hook_perm().
block_themeImplementation of hook_theme()
block_userImplementation of hook_user().
_block_get_cache_idAssemble the cache_id to use for a given block.
_block_rehashUpdate the 'blocks' DB table with the blocks currently exported by modules.
_block_themes_accessMenu item access callback - only admin or enabled themes can be accessed

Konstanten

NameBeschreibung
BLOCK_CACHE_GLOBALThe block is the same for every user on every page where it is visible.
BLOCK_CACHE_PER_PAGEThe block can change depending on the page being viewed.
BLOCK_CACHE_PER_ROLEThe block can change depending on the roles the user viewing the page belongs to. This is the default setting, used when the block does not specify anything.
BLOCK_CACHE_PER_USERThe block can change depending on the user viewing the page. This setting can be resource-consuming for sites with large number of users, and thus should only be used when BLOCK_CACHE_PER_ROLE is not sufficient.
BLOCK_NO_CACHEThe block should not get cached. This setting should be used:
BLOCK_REGION_NONEDenotes that a block is not enabled in any region and should not be shown.

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