block.module

  1. drupal
    1. drupal6
    2. drupal7

Version 1.336 (checked in on 2009/05/24 at 17:39:30 by dries)

Controls the boxes that are displayed around the main content.

Funktionen & Methoden

NameBeschreibung
block_block_configureImplementation of hook_block_configure().
block_block_listImplementation of hook_block_list().
block_block_saveImplementation of hook_block_save().
block_block_viewImplementation of hook_block_view().
block_box_formDefine the custom block form.
block_box_get
block_box_save
block_flush_cachesImplementation of hook_flush_caches().
block_form_system_performance_settings_alterImplementation of hook_form_FORM_ID_alter().
block_form_system_themes_form_alterImplementation of hook_form_FORM_ID_alter().
block_get_blocks_by_regionGet a renderable array of a region containing all enabled blocks.
block_helpImplementation of hook_help().
block_initialize_theme_blocksAssign an initial, default set of blocks for a theme.
block_listReturn all blocks in the specified region for the current user.
block_menuImplementation of hook_menu().
block_page_alterImplementation of hook_page_alter().
block_permImplementation of hook_perm().
block_system_themes_form_submitInitialize blocks for enabled themes.
block_themeImplementation of hook_theme().
block_user_formImplementation of hook_user_form().
block_user_validateImplementation of hook_user_validate().
template_preprocess_blockProcess variables for block.tpl.php
_block_get_cache_idAssemble the cache_id to use for a given block.
_block_load_blocksLoad blocks information from the database.
_block_rehashUpdate the 'block' DB table with the blocks currently exported by modules.
_block_render_blocksRender the content and subject for a set of blocks.
_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