- Patch #691938 by carlos8f, mr.baileys: block tests

merge-requests/26/head
Dries Buytaert 2010-02-28 17:28:38 +00:00
parent 0c363d2268
commit 00ed8e3e62
2 changed files with 32 additions and 0 deletions

View File

@ -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

View File

@ -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', ''));
}