Elgg  Version 1.11
advanced.php
Go to the documentation of this file.
1 <?php
8 // the output:page hook is triggered by elgg_view_page().
9 elgg_register_plugin_hook_handler('output', 'page', 'example_plugin_hook_handler', 600);
10 elgg_register_plugin_hook_handler('output', 'page', 'example_plugin_hook_handler_2', 601);
11 
13  // change a to @
14  $value = str_replace('a', '@', $value);
15 
16  return $value;
17 }
18 
20  // change S to $
21  $value = str_replace('S', '$', $value);
22 
23  return $value;
24 }
25 
26 $content = 'This is some Sample Content.';
27 
28 echo elgg_view_page('Title', $content);
$value
Definition: longtext.php:26
elgg_register_plugin_hook_handler($hook, $type, $callback, $priority=500)
Definition: elgglib.php:703
$params
Definition: login.php:72
elgg echo
Translates a string.
Definition: languages.js:43
$type
Definition: add.php:8
example_plugin_hook_handler_2($hook, $type, $value, $params)
Definition: advanced.php:19
elgg_view_page($title, $body, $page_shell= 'default', $vars=array())
Assembles and outputs a full page.
Definition: views.php:437
example_plugin_hook_handler($hook, $type, $value, $params)
Definition: advanced.php:12
$content
Definition: advanced.php:26