block.module
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
| Name | Description |
|---|---|
| BLOCK_CACHE_GLOBAL | The block is the same for every user on every page where it is visible. |
| BLOCK_CACHE_PER_PAGE | The block can change depending on the page being viewed. |
| BLOCK_CACHE_PER_ROLE | The 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_USER | The 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_CACHE | The 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_NONE | Denotes that a block is not enabled in any region and should not be shown. |
Functions
| Name | Description |
|---|---|
| block_block | Implementation of hook_block(). |
| block_box_form | Define the custom block form. |
| block_box_get | |
| block_box_save | |
| block_help | Implementation of hook_help(). |
| block_list | Return all blocks in the specified region for the current user. |
| block_menu | Implementation of hook_menu(). |
| block_perm | Implementation of hook_perm(). |
| block_theme | Implementation of hook_theme() |
| block_user | Implementation of hook_user(). |
| _block_get_cache_id | Assemble the cache_id to use for a given block. |
| _block_rehash | Update the 'blocks' DB table with the blocks currently exported by modules. |
| _block_themes_access | Menu item access callback - only admin or enabled themes can be accessed |
