aboutsummaryrefslogtreecommitdiff
path: root/mod/guidbrowser
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-02 22:53:55 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-02 22:53:55 +0000
commit6aaa89ba29640f72280d3e59e3dab42651a2d885 (patch)
tree90c301f213d016a9fed8aa1af7fb46471008b585 /mod/guidbrowser
parentffa39470d8513396e33f56e018cba22b35419dfc (diff)
downloadelgg-6aaa89ba29640f72280d3e59e3dab42651a2d885.tar.gz
elgg-6aaa89ba29640f72280d3e59e3dab42651a2d885.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* End of day git-svn-id: https://code.elgg.org/elgg/trunk@377 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/guidbrowser')
-rw-r--r--mod/guidbrowser/index.php20
-rw-r--r--mod/guidbrowser/languages/en.php14
-rw-r--r--mod/guidbrowser/start.php25
-rw-r--r--mod/guidbrowser/views/default/guidbrowser/entity.php3
-rw-r--r--mod/guidbrowser/views/default/guidbrowser/entity_full.php3
-rw-r--r--mod/guidbrowser/views/default/guidbrowser/navbar.php3
-rw-r--r--mod/guidbrowser/views/default/guidbrowser/newentity.php3
7 files changed, 71 insertions, 0 deletions
diff --git a/mod/guidbrowser/index.php b/mod/guidbrowser/index.php
new file mode 100644
index 000000000..71b852bb6
--- /dev/null
+++ b/mod/guidbrowser/index.php
@@ -0,0 +1,20 @@
+<?php
+ /**
+ * Elgg GUID browser
+ *
+ * @package ElggDevTools
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Marcus Povey <marcus@marcus-povey.co.uk>
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.com/
+ */
+
+ // Load Elgg engine
+ require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php");
+
+ // Get the current page's owner
+ $page_owner = page_owner_entity();
+
+ // Display page
+ page_draw(elgg_echo("guidbrowser"), $body);
+?> \ No newline at end of file
diff --git a/mod/guidbrowser/languages/en.php b/mod/guidbrowser/languages/en.php
new file mode 100644
index 000000000..a3d771b7c
--- /dev/null
+++ b/mod/guidbrowser/languages/en.php
@@ -0,0 +1,14 @@
+<?php
+ $english = array(
+
+ /**
+ * Menu items and titles
+ */
+
+ 'guidbrowser' => "GUID Browser"
+
+
+ );
+
+ add_translation("en", $english);
+?> \ No newline at end of file
diff --git a/mod/guidbrowser/start.php b/mod/guidbrowser/start.php
new file mode 100644
index 000000000..e5a08f02e
--- /dev/null
+++ b/mod/guidbrowser/start.php
@@ -0,0 +1,25 @@
+<?php
+ function guidbrowser_init($event, $object_type, $object = null) {
+
+ global $CONFIG;
+ // register_translations($CONFIG->pluginspath . "guidbrowser/languages/");
+ add_menu("GUID Browser",$CONFIG->wwwroot . "mod/tasklist/",array(
+ menu_item("The GUID browser",$CONFIG->wwwroot."mod/guidbrowser/"),
+ ));
+ }
+
+ function guidbrowser_displayentity($entity)
+ {
+ // display summary
+ // display full on clickdown
+ }
+
+ function guidbrowser_display($offset = 0, $limit = 10, $type = "", $subtype = "")
+ {
+
+ }
+
+
+ // Make sure test_init is called on initialisation
+ register_event_handler('init','system','guidbrowser_init');
+?> \ No newline at end of file
diff --git a/mod/guidbrowser/views/default/guidbrowser/entity.php b/mod/guidbrowser/views/default/guidbrowser/entity.php
new file mode 100644
index 000000000..15c5adc7f
--- /dev/null
+++ b/mod/guidbrowser/views/default/guidbrowser/entity.php
@@ -0,0 +1,3 @@
+<?php
+
+?> \ No newline at end of file
diff --git a/mod/guidbrowser/views/default/guidbrowser/entity_full.php b/mod/guidbrowser/views/default/guidbrowser/entity_full.php
new file mode 100644
index 000000000..15c5adc7f
--- /dev/null
+++ b/mod/guidbrowser/views/default/guidbrowser/entity_full.php
@@ -0,0 +1,3 @@
+<?php
+
+?> \ No newline at end of file
diff --git a/mod/guidbrowser/views/default/guidbrowser/navbar.php b/mod/guidbrowser/views/default/guidbrowser/navbar.php
new file mode 100644
index 000000000..15c5adc7f
--- /dev/null
+++ b/mod/guidbrowser/views/default/guidbrowser/navbar.php
@@ -0,0 +1,3 @@
+<?php
+
+?> \ No newline at end of file
diff --git a/mod/guidbrowser/views/default/guidbrowser/newentity.php b/mod/guidbrowser/views/default/guidbrowser/newentity.php
new file mode 100644
index 000000000..15c5adc7f
--- /dev/null
+++ b/mod/guidbrowser/views/default/guidbrowser/newentity.php
@@ -0,0 +1,3 @@
+<?php
+
+?> \ No newline at end of file