block.module
Version 1.299.2.4 (checked in on 2009/10/06 at 12:13:01 by goba)
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: |
| 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 | Returns information from database about a user-created (custom) block. |
| block_box_save | Saves a user-created block in the database. |
| 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 |
