diff options
Diffstat (limited to 'mod/test')
-rw-r--r-- | mod/test/index.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mod/test/index.php b/mod/test/index.php index b068c4dd4..e8940c6a4 100644 --- a/mod/test/index.php +++ b/mod/test/index.php @@ -8,6 +8,12 @@ $body = elgg_view("testplugin/pageshell");
page_draw("Test plugin",$body);
-
+ $object = new ElggObject();
+ $object->type = "forum";
+ $object->title = "Howdy!";
+ $object->description = "I am the very model of a modern major general";
+ $object->access = 2;
+ $object->save();
+ $object->setMetadata('parent',0,2);
?>
\ No newline at end of file |