Version

1.299.2.3 (checked in on 2008/06/24 at 14:40:08 by goba)

Description

Controls the boxes that are displayed around the main content.

Constants

Namesort iconDescription
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: for simple blocks (notably those that do not perform any db query), where querying the db cache would be more expensive than directly generating the content. for blocks that change too...
BLOCK_REGION_NONEDenotes that a block is not enabled in any region and should not be shown.

Functions

Namesort iconDescription
block_blockImplementation of hook_block().
block_box_formDefine the custom block form.
block_box_get
block_box_save
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