aboutsummaryrefslogtreecommitdiff
path: root/documentation/examples/hooks
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-02 23:51:12 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-02 23:51:12 +0000
commite4224c70c270a7ebf16e006a8324d6a944de6fbc (patch)
treec9b89b58f74b8245c974c0029ad1d1df1e9cfc8b /documentation/examples/hooks
parent38c0c73c2f60d7c63cc4da1b20b031cda5851e11 (diff)
downloadelgg-e4224c70c270a7ebf16e006a8324d6a944de6fbc.tar.gz
elgg-e4224c70c270a7ebf16e006a8324d6a944de6fbc.tar.bz2
Refs #2360: Deprecated page_draw in favor of elgg_view_page. Updated packaged documentation to reflect this.
git-svn-id: http://code.elgg.org/elgg/trunk@7208 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'documentation/examples/hooks')
-rw-r--r--documentation/examples/hooks/register/advanced.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/documentation/examples/hooks/register/advanced.php b/documentation/examples/hooks/register/advanced.php
index a21a2e232..627bb5454 100644
--- a/documentation/examples/hooks/register/advanced.php
+++ b/documentation/examples/hooks/register/advanced.php
@@ -1,6 +1,6 @@
<?php
-// the output:page hook is triggered by page_draw().
+// the output:page hook is triggered by elgg_view_page().
register_plugin_hook('output', 'page', 'example_plugin_hook_handler', 600);
register_plugin_hook('output', 'page', 'example_plugin_hook_handler_2', 601);
@@ -11,7 +11,7 @@ function example_plugin_hook_handler($event, $type, $value, $params) {
return $value;
}
-function example_plugin_hook_handler($event, $type, $value, $params) {
+function example_plugin_hook_handler_2($event, $type, $value, $params) {
// change S to $
$value = str_replace('S', '$', $value);
@@ -20,4 +20,4 @@ function example_plugin_hook_handler($event, $type, $value, $params) {
$content = 'This is some Sample Content.';
-page_draw('Title', $content); \ No newline at end of file
+echo elgg_view_page('Title', $content); \ No newline at end of file