diff options
author | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-02-15 19:09:44 +0000 |
---|---|---|
committer | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-02-15 19:09:44 +0000 |
commit | 458eec8196a2ec973ffc14d1dc18bbe3dec49a1c (patch) | |
tree | d9b48c3a006d7ac24f07fefacd2089ca2bebd6a9 /engine | |
parent | 80ac424f0868934d6b99d2f47d8479afe3a133ae (diff) | |
download | elgg-458eec8196a2ec973ffc14d1dc18bbe3dec49a1c.tar.gz elgg-458eec8196a2ec973ffc14d1dc18bbe3dec49a1c.tar.bz2 |
latest activity link removed as it will be replaced by a full activity stream
git-svn-id: https://code.elgg.org/elgg/trunk@2756 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r-- | engine/lib/elgglib.php | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php index 71cf2ae51..e21e30e25 100644 --- a/engine/lib/elgglib.php +++ b/engine/lib/elgglib.php @@ -309,7 +309,7 @@ // If it's been requested, pass off to a template handler instead if ($bypass == false && isset($CONFIG->template_handler) && !empty($CONFIG->template_handler)) { - $template_handler = $CONFIG->template_handler;
+ $template_handler = $CONFIG->template_handler; if (is_callable($template_handler)) return $template_handler($view, $vars); } @@ -1479,10 +1479,10 @@ } /** - * Triggers a plugin hook, with various parameters as an array. For example, to provide
- * a 'foo' hook that concerns an entity of type 'bar', with a parameter called 'param1'
- * with value 'value1', that by default returns true, you'd call:
- *
+ * Triggers a plugin hook, with various parameters as an array. For example, to provide + * a 'foo' hook that concerns an entity of type 'bar', with a parameter called 'param1' + * with value 'value1', that by default returns true, you'd call: + * * trigger_plugin_hook('foo', 'bar', array('param1' => 'value1'), true); * * @see register_plugin_hook @@ -2101,29 +2101,29 @@ // Menu global $CONFIG; - add_menu(elgg_echo('content:latest'), $CONFIG->wwwroot . 'dashboard/latest.php'); + //add_menu(elgg_echo('content:latest'), $CONFIG->wwwroot . 'dashboard/latest.php'); // Page handler for JS - register_page_handler('js','js_page_handler');
+ register_page_handler('js','js_page_handler'); extend_view('js/initialise_elgg','embed/js'); // Register an event triggered at system shutdown register_shutdown_function('__elgg_shutdown_hook'); } -
- function elgg_boot() {
-
- // Actions
- register_action('comments/add');
- register_action('comments/delete');
- }
-
- /**
- * Some useful constant definitions
- */
- define('ACCESS_PRIVATE',0);
- define('ACCESS_LOGGED_IN',1);
- define('ACCESS_PUBLIC',2);
- register_elgg_event_handler('init','system','elgg_init');
+ function elgg_boot() { + + // Actions + register_action('comments/add'); + register_action('comments/delete'); + } + + /** + * Some useful constant definitions + */ + define('ACCESS_PRIVATE',0); + define('ACCESS_LOGGED_IN',1); + define('ACCESS_PUBLIC',2); + + register_elgg_event_handler('init','system','elgg_init'); register_elgg_event_handler('boot','system','elgg_boot'); ?>
\ No newline at end of file |