This example demonstrates how blocks are created.

This is an example outlining how a module can define blocks that can be displayed on various pages and how modules can alter blocks provided by a module.

Parent topics

File

modules/examples/block_example/block_example.module, line 7
Hook implementations for the Block Example module.

Functions

Namesort descending Location Description
block_example_autoload_info modules/examples/block_example/block_example.module Implements hook_autoload_info().
block_example_block_configure modules/examples/block_example/block_example.module Implements hook_block_configure().
block_example_block_info modules/examples/block_example/block_example.module Implements hook_block_info().
block_example_block_save modules/examples/block_example/block_example.module Implements hook_block_save().
block_example_block_view modules/examples/block_example/block_example.module Implements hook_block_view().
block_example_block_view_alter modules/examples/block_example/block_example.module Implements hook_block_view_alter().
block_example_contents modules/examples/block_example/block_example.module A module-defined block content function.
block_example_menu modules/examples/block_example/block_example.module Implements hook_menu().
block_example_page modules/examples/block_example/block_example.module Simple page function to explain what the block example is about.

Classes

Namesort descending Location Description
BlockExampleTestCase modules/examples/block_example/tests/block_example.test Functional tests for the Block Example module.