diff --git a/modules/block/tests/block_test.info b/modules/block/tests/block_test.info new file mode 100644 index 0000000000000000000000000000000000000000..3b9b80b2f110a1581e9e1a2ff3e3bcf3f387c338 --- /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 0000000000000000000000000000000000000000..b10994aaaf10a7dd24980fe396ea951a80585563 --- /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', '')); +}