aboutsummaryrefslogtreecommitdiff
path: root/mod/pages/start.php
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2013-04-19 20:28:51 -0400
committercash <cash.costello@gmail.com>2013-04-19 20:28:51 -0400
commit863d45bb76d5bce2dabe32acc6f7d1f5400d568d (patch)
treebe52131c535c5b84897b79f49dfce59041450995 /mod/pages/start.php
parentaa409144fcac454c8f6e2566606e0fb206d933d7 (diff)
parent7b002adf2fd383e6a0e7e4b93890720d99750282 (diff)
downloadelgg-863d45bb76d5bce2dabe32acc6f7d1f5400d568d.tar.gz
elgg-863d45bb76d5bce2dabe32acc6f7d1f5400d568d.tar.bz2
Merge pull request #5325 into 1.8 branch
Diffstat (limited to 'mod/pages/start.php')
-rw-r--r--mod/pages/start.php21
1 files changed, 7 insertions, 14 deletions
diff --git a/mod/pages/start.php b/mod/pages/start.php
index c1183c9bf..f9c34cd85 100644
--- a/mod/pages/start.php
+++ b/mod/pages/start.php
@@ -28,9 +28,10 @@ function pages_init() {
elgg_register_annotation_url_handler('page', 'pages_revision_url');
// Register some actions
- $action_base = elgg_get_plugins_path() . 'pages/actions/pages';
- elgg_register_action("pages/edit", "$action_base/edit.php");
- elgg_register_action("pages/delete", "$action_base/delete.php");
+ $action_base = elgg_get_plugins_path() . 'pages/actions';
+ elgg_register_action("pages/edit", "$action_base/pages/edit.php");
+ elgg_register_action("pages/delete", "$action_base/pages/delete.php");
+ elgg_register_action("annotations/page/delete", "$action_base/annotations/page/delete.php");
// Extend the main css view
elgg_extend_view('css/elgg', 'pages/css');
@@ -80,6 +81,9 @@ function pages_init() {
// entity menu
elgg_register_plugin_hook_handler('register', 'menu:entity', 'pages_entity_menu_setup');
+ // hook into annotation menu
+ elgg_register_plugin_hook_handler('register', 'menu:annotation', 'pages_annotation_menu_setup');
+
// register ecml views to parse
elgg_register_plugin_hook_handler('get_views', 'ecml', 'pages_ecml_views_hook');
@@ -364,14 +368,3 @@ function pages_ecml_views_hook($hook, $entity_type, $return_value, $params) {
return $return_value;
}
-
-/**
- * Process upgrades for the pages plugin
- */
-function pages_run_upgrades() {
- $path = elgg_get_plugins_path() . 'pages/upgrades/';
- $files = elgg_get_upgrade_files($path);
- foreach ($files as $file) {
- include "$path{$file}";
- }
-}