aboutsummaryrefslogtreecommitdiff
path: root/documentation/examples/hooks/trigger
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-11-12 14:49:36 -0500
committercash <cash.costello@gmail.com>2011-11-16 19:53:04 -0500
commit0ec65a0130347b3b846628e9e59a1f1cbf0f0e06 (patch)
treea2a3a3fb11b6c1ca318d923e1cc949a2b10dd76b /documentation/examples/hooks/trigger
parent11aacb4f048e659d1b86a6ba229438444a186142 (diff)
downloadelgg-0ec65a0130347b3b846628e9e59a1f1cbf0f0e06.tar.gz
elgg-0ec65a0130347b3b846628e9e59a1f1cbf0f0e06.tar.bz2
cleaned up the plugin hooks documentation
Diffstat (limited to 'documentation/examples/hooks/trigger')
-rw-r--r--documentation/examples/hooks/trigger/advanced.php9
-rw-r--r--documentation/examples/hooks/trigger/basic.php9
2 files changed, 0 insertions, 18 deletions
diff --git a/documentation/examples/hooks/trigger/advanced.php b/documentation/examples/hooks/trigger/advanced.php
deleted file mode 100644
index 5901a06e0..000000000
--- a/documentation/examples/hooks/trigger/advanced.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-$default = array('Entry 1', 'Entry 2', 'Entry 3');
-
-$menu = elgg_trigger_plugin_hook('get_menu_items', 'menu', null, $default);
-
-foreach ($menu as $item) {
- var_dump($item);
-}
diff --git a/documentation/examples/hooks/trigger/basic.php b/documentation/examples/hooks/trigger/basic.php
deleted file mode 100644
index ea27a8a98..000000000
--- a/documentation/examples/hooks/trigger/basic.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-$result = elgg_trigger_plugin_hook('get_status', 'example', null, true);
-
-if ($result) {
- var_dump('Plugin hook says ok!');
-} else {
- var_dump('Plugin hook says no.');
-}