block.module

Version 1.399 (checked in on 2009/11/19 at 05:54:42 by webchick)

Controls the visual building blocks a page is constructed with.

Constants

NameDescription
BLOCK_REGION_NONEDenotes that a block is not enabled in any region and should not be shown.

Functions

NameDescription
block_block_configureImplement hook_block_configure().
block_block_infoImplement hook_block_info().
block_block_info_alterImplement hook_block_info_alter().
block_block_saveImplement hook_block_save().
block_block_viewImplement hook_block_view().
block_custom_block_formDefine the custom block form.
block_custom_block_getReturns information from database about a user-created (custom) block.
block_custom_block_saveSaves a user-created block in the database.
block_filter_format_deleteImplement hook_filter_format_delete().
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_form_user_profile_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_listReturn all blocks in the specified region for the current user.
block_loadLoad a block object from the database.
block_menuImplement hook_menu().
block_menu_deleteImplement hook_menu_delete().
block_page_buildImplement hook_page_build().
block_permissionImplement hook_permission().
block_system_themes_form_submitInitialize blocks for enabled themes.
block_themeImplement hook_theme().
block_theme_initializeAssign an initial, default set of blocks for a theme.
block_user_role_deleteImplement hook_user_role_delete().
template_preprocess_blockProcess variables for block.tpl.php
_block_custom_themeTheme callback for the block configuration pages.
_block_get_cache_idAssemble the cache_id to use for a given block.
_block_get_renderable_arrayGet an array of blocks suitable for drupal_render().
_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.
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.