Example: Block
Same name in other branches
- 3.x modules/block_example/block_example.module \block_example
- 4.0.x modules/block_example/block_example.module \block_example
Demonstrates code creation of blocks.
This is an example outlining how a module can define blocks that can be displayed on various pages of a site, or how to alter blocks provided by other modules.
Parent topics
File
-
block_example/
block_example.module, line 7
Functions
Title Sort descending | File name | Summary |
---|---|---|
block_example_block_configure | block_example/ |
Implements hook_block_configure(). |
block_example_block_info | block_example/ |
Implements hook_block_info(). |
block_example_block_list_alter | block_example/ |
Implements hook_block_list_alter(). |
block_example_block_save | block_example/ |
Implements hook_block_save(). |
block_example_block_view | block_example/ |
Implements hook_block_view(). |
block_example_block_view_alter | block_example/ |
Implements hook_block_view_alter(). |
block_example_contents | block_example/ |
A module-defined block content function. |
block_example_menu | block_example/ |
Implements hook_menu(). |
block_example_page | block_example/ |
Simple page function to explain what the block example is about. |
block_example_uninstall | block_example/ |
Implements hook_uninstall(). |
Classes
Title Sort descending | File name | Summary |
---|---|---|
BlockExampleTestCase | block_example/ |
Functional tests for the Block Example module. |