block.module

Controls the visual building blocks a page is constructed with.

File

drupal/core/modules/block/block.module
View source

Functions

Namesort descending Description
block_admin_paths Implements hook_admin_paths().
block_get_blocks_by_region Gets a renderable array of a region containing all enabled blocks.
block_help Implements hook_help().
block_language_delete Implements hook_language_delete().
block_library_info Implements hook_library_info().
block_list Returns all blocks in the specified region for the current user.
block_load Loads a block instance.
block_menu Implements hook_menu().
block_menu_delete Implements hook_menu_delete().
block_page_build Implements hook_page_build().
block_permission Implements hook_permission().
block_rebuild Implements hook_rebuild().
block_theme Implements hook_theme().
block_themes_enabled Initializes blocks for enabled themes.
block_theme_initialize Assigns an initial, default set of blocks for a theme.
block_user_role_delete Implements hook_user_role_delete().
template_preprocess_block Prepares variables for block templates.
_block_custom_theme Theme callback: Uses the theme specified in the parameter.
_block_get_renderable_block Builds the content and label for a block.
_block_get_renderable_region Gets an array of blocks suitable for drupal_render().
_block_rehash Returns an array of block class instances by theme.
_block_themes_access Access callback: Only enabled themes can be accessed.

Constants

Namesort descending Description
BLOCK_CUSTOM_DISABLED Hides this block by default but lets individual users show it.
BLOCK_CUSTOM_ENABLED Shows this block by default, but lets individual users hide it.
BLOCK_CUSTOM_FIXED Users cannot control whether or not they see this block.
BLOCK_LABEL_VISIBLE Indicates the block label (title) should be displayed to end users.
BLOCK_REGION_NONE Denotes that a block is not enabled in any region and should not be shown.
BLOCK_VISIBILITY_LISTED Shows this block on only the listed pages.
BLOCK_VISIBILITY_NOTLISTED Shows this block on every page except the listed pages.
BLOCK_VISIBILITY_PHP Shows this block if the associated PHP code returns TRUE.