diff options
Diffstat (limited to 'mod/test')
-rw-r--r-- | mod/test/index.php | 9 | ||||
-rw-r--r-- | mod/test/start.php | 3 | ||||
-rw-r--r-- | mod/test/views/default/testplugin/pageshell.php | 5 |
3 files changed, 7 insertions, 10 deletions
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 @@ -<p><i>Gosh! This view was added to!</i></p>
\ No newline at end of file +<form action="<?php echo $vars['url']; ?>action/banana" method="post">
+ <p><i>Gosh! This view was added to!</i></p>
+ <input type="submit" value="Go" />
+</form>
\ No newline at end of file |