block.module
Controls the visual building blocks a page is constructed with.
File
modules/block/block.moduleFunctions
Name | Description |
---|---|
block_admin_paths | Implements hook_admin_paths(). |
block_block_configure | Implements hook_block_configure(). |
block_block_info | Implements hook_block_info(). |
block_block_list_alter | Implements hook_block_list_alter(). |
block_block_save | Implements hook_block_save(). |
block_block_view | Implements hook_block_view(). |
block_custom_block_form | Form constructor for the custom block form. |
block_custom_block_get | Returns information from database about a user-created (custom) block. |
block_custom_block_save | Saves a user-created block in the database. |
block_flush_caches | Implements hook_flush_caches(). |
block_form_system_performance_settings_alter | Implements hook_form_FORM_ID_alter(). |
block_form_user_profile_form_alter | Implements hook_form_FORM_ID_alter() for user_profile_form(). |
block_get_blocks_by_region | Gets a renderable array of a region containing all enabled blocks. |
block_help | Implements hook_help(). |
block_list | Returns all blocks in the specified region for the current user. |
block_load | Loads a block object from the database. |
block_menu | Implements hook_menu(). |
block_menu_delete | Implements hook_menu_delete(). |
block_modules_uninstalled | Implements hook_modules_uninstalled(). |
block_page_build | Implements hook_page_build(). |
block_permission | Implements hook_permission(). |
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_presave | Implements hook_user_presave(). |
block_user_role_delete | Implements hook_user_role_delete(). |
template_preprocess_block | Processes variables for block.tpl.php. |
_block_custom_theme | Theme callback for the block configuration pages. |
_block_get_cache_id | Assemble the cache_id to use for a given block. |
_block_get_renderable_array | Gets an array of blocks suitable for drupal_render(). |
_block_load_blocks | Loads blocks' information from the database. |
_block_rehash | Updates the 'block' DB table with the blocks currently exported by modules. |
_block_render_blocks | Render the content and subject for a set of blocks. |
_block_themes_access | Menu item access callback - only admin or enabled themes can be accessed. |
Constants
Name | 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_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. |
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!block!block.module/7.x