diff options
-rw-r--r-- | modules/block/tests/block_test.info | 8 | ||||
-rw-r--r-- | modules/block/tests/block_test.module | 24 |
2 files changed, 32 insertions, 0 deletions
diff --git a/modules/block/tests/block_test.info b/modules/block/tests/block_test.info new file mode 100644 index 000000000..3b9b80b2f --- /dev/null +++ b/modules/block/tests/block_test.info @@ -0,0 +1,8 @@ +; $Id$ +name = Block test +description = Provides test blocks. +package = Testing +version = VERSION +core = 7.x +files[] = block_test.module +hidden = TRUE diff --git a/modules/block/tests/block_test.module b/modules/block/tests/block_test.module new file mode 100644 index 000000000..b10994aaa --- /dev/null +++ b/modules/block/tests/block_test.module @@ -0,0 +1,24 @@ +<?php +// $Id$ + +/** + * @file + * Provide test blocks. + */ + +/** + * Implements hook_block_info(). + */ +function block_test_block_info() { + $blocks['test_cache'] = array( + 'info' => t('Test block caching'), + ); + return $blocks; +} + +/** + * Implements hook_block_view(). + */ +function block_test_block_view($delta = 0) { + return array('content' => variable_get('block_test_content', '')); +} |