Da monster-commit of blocks version 2!

Code based on the work of Daryl Hawes for the blog module. Thanks, Daryl!

Please test the hell out of it as it's sure to have issues that need to be
ironed out.
This commit is contained in:
defacer
2004-10-19 21:04:28 +00:00
parent 2defdcd7d5
commit 9b4b78fd6a
38 changed files with 1222 additions and 974 deletions
+3 -3
View File
@@ -20,12 +20,12 @@
require_variable($_REQUEST['block']);
$blockid = intval($_REQUEST['block']);
if(($blockrecord = get_record('blocks', 'id', $blockid)) === false) {
if(($blockrecord = blocks_get_record($blockid)) === false) {
error('This block does not exist');
}
$block = block_instance($blockrecord->name, NULL);
$block = block_instance($blockrecord->name);
if($block === false) {
error('Problem in instantiating block object');
}