From 4e06bd2292a1bc7eef3dd742149a577ea09fcf5e Mon Sep 17 00:00:00 2001 From: ben Date: Wed, 12 Mar 2008 11:55:25 +0000 Subject: Language updates git-svn-id: https://code.elgg.org/elgg/trunk@184 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/test/index.php | 9 +-------- mod/test/start.php | 3 ++- mod/test/views/default/testplugin/pageshell.php | 5 ++++- 3 files changed, 7 insertions(+), 10 deletions(-) (limited to 'mod/test') diff --git a/mod/test/index.php b/mod/test/index.php index e8940c6a4..96fc4bdab 100644 --- a/mod/test/index.php +++ b/mod/test/index.php @@ -5,15 +5,8 @@ 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); ?> \ No newline at end of file diff --git a/mod/test/start.php b/mod/test/start.php index 345ca7588..09d536052 100644 --- a/mod/test/start.php +++ b/mod/test/start.php @@ -23,5 +23,6 @@ // Make sure test_init is called on initialisation register_event_handler('init','system','test_init'); - + global $CONFIG; + register_action('banana',true,$CONFIG->path . "mod/test/banana.php"); ?> \ No newline at end of file diff --git a/mod/test/views/default/testplugin/pageshell.php b/mod/test/views/default/testplugin/pageshell.php index 889fba661..694f26874 100644 --- a/mod/test/views/default/testplugin/pageshell.php +++ b/mod/test/views/default/testplugin/pageshell.php @@ -1 +1,4 @@ -

Gosh! This view was added to!

\ No newline at end of file +
+

Gosh! This view was added to!

+ +
\ No newline at end of file -- cgit v1.2.3