Example: Block in Examples for Developers 8
Same name and namespace in other branches
- 6 block_example/block_example.module \block_example
- 7 block_example/block_example.module \block_example
- 3.x modules/block_example/block_example.module \block_example
Demonstrates code creation of blocks.
This example demonstrates how a module can define blocks that can be displayed on various pages of a site, and how to alter blocks provided by other modules.
Parent topics
File
- block_example/
block_example.module, line 10 - Module file for block_example.
Functions
Name | Location | Description |
---|---|---|
block_example_block_view_alter |
block_example/ |
Implements hook_block_view_alter(). |
Classes
Name | Location | Description |
---|---|---|
BlockExampleMenuTest |
block_example/ |
Test the user-facing menus in Block Example. |
BlockExampleTest |
block_example/ |
Test the configuration options and block created by Block Example module. |