diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-03-12 11:55:25 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-03-12 11:55:25 +0000 |
commit | 4e06bd2292a1bc7eef3dd742149a577ea09fcf5e (patch) | |
tree | df2874c916eb8a286ef3028ac03bc22299a4e32a /mod | |
parent | 083219d563d9c3a35429b27a1b76a312e7fa72dd (diff) | |
download | elgg-4e06bd2292a1bc7eef3dd742149a577ea09fcf5e.tar.gz elgg-4e06bd2292a1bc7eef3dd742149a577ea09fcf5e.tar.bz2 |
Language updates
git-svn-id: https://code.elgg.org/elgg/trunk@184 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod')
-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 |