From db8bdea8f4ce480cb10db3a21a5cd404bb334960 Mon Sep 17 00:00:00 2001 From: ben Date: Wed, 12 Mar 2008 10:39:08 +0000 Subject: Fixing incorrect primary key git-svn-id: https://code.elgg.org/elgg/trunk@180 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/test/index.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'mod/test/index.php') 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 -- cgit v1.2.3