Example: Block

  1. examples
    1. 6 block_example/block_example.module
    2. 7 block_example/block_example.module
    3. 8 block_example/block_example.module

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.

Functions & methods

NameDescription
block_example_block_configureImplements hook_block_configure().
block_example_block_infoImplements hook_block_info().
block_example_block_list_alterImplements hook_block_list_alter().
block_example_block_saveImplements hook_block_save().
block_example_block_viewImplements hook_block_view().
block_example_block_view_alterImplements hook_block_view_alter().
block_example_contentsA module-defined block content function.
block_example_menuImplements hook_menu().
block_example_pageSimple page function to explain what the block example is about.
block_example_uninstallImplements hook_uninstall().

File

block_example/block_example.module, line 7
Module file for block_example.

Login or register to post comments