aboutsummaryrefslogtreecommitdiff
path: root/mod/test/index.php
blob: e8940c6a4f51149c6e612135f4a34bbd50e94cca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php

	require_once("../../engine/start.php");
	
	global $CONFIG;
	
	//var_export($CONFIG);
	$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);
	
?>