Version

1.347 (checked in on 2009/07/01 at 08:04:19 by dries)

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_block_configureImplement hook_block_configure().
block_block_listImplement hook_block_list().
block_block_list_alterImplement hook_block_list_alter().
block_block_saveImplement hook_block_save().
block_block_viewImplement hook_block_view().
block_box_formDefine the custom block form.
block_box_get
block_box_save
block_flush_cachesImplement hook_flush_caches().
block_form_system_performance_settings_alterImplement hook_form_FORM_ID_alter().
block_form_system_themes_form_alterImplement hook_form_FORM_ID_alter().
block_get_blocks_by_regionGet a renderable array of a region containing all enabled blocks.
block_helpImplement 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_menuImplement hook_menu().
block_page_alterImplement hook_page_alter().
block_permImplement hook_perm().
block_system_themes_form_submitInitialize blocks for enabled themes.
block_themeImplement hook_theme().
block_user_formImplement hook_user_form().
block_user_validateImplement 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.