aboutsummaryrefslogtreecommitdiff
path: root/mod/categories/start.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-11 22:51:08 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-11 22:51:08 +0000
commit891739afadddad56b517b7d565458296eeb58c0b (patch)
tree1891b4f21abd3df6aa1ec4b8847758644e1622fb /mod/categories/start.php
parent1f1a9d691360eac9bb3eeaf98ebaaec6b6305b2b (diff)
downloadelgg-891739afadddad56b517b7d565458296eeb58c0b.tar.gz
elgg-891739afadddad56b517b7d565458296eeb58c0b.tar.bz2
some clean up of the categories plugin - html/css polish needed
git-svn-id: http://code.elgg.org/elgg/trunk@8122 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/categories/start.php')
-rw-r--r--mod/categories/start.php11
1 files changed, 5 insertions, 6 deletions
diff --git a/mod/categories/start.php b/mod/categories/start.php
index aa460677a..5590c0089 100644
--- a/mod/categories/start.php
+++ b/mod/categories/start.php
@@ -1,11 +1,12 @@
<?php
-
/**
* Elgg categories plugin
*
* @package ElggCategories
*/
+elgg_register_event_handler('init', 'system', 'categories_init');
+
/**
* Initialise categories plugin
*
@@ -19,8 +20,8 @@ function categories_init() {
register_page_handler('categories', 'categories_page_handler');
- elgg_register_event_handler('update','all','categories_save');
- elgg_register_event_handler('create','all','categories_save');
+ elgg_register_event_handler('update', 'all', 'categories_save');
+ elgg_register_event_handler('create', 'all', 'categories_save');
}
@@ -34,7 +35,7 @@ function categories_page_handler() {
}
/**
- * Save site categories to and object upon save / edit
+ * Save categories to object upon save / edit
*
*/
function categories_save($event, $object_type, $object) {
@@ -72,5 +73,3 @@ function categories_on_enable() {
function categories_on_disable() {
elgg_delete_admin_notice('categories_admin_notice_no_categories');
}
-
-elgg_register_event_handler('init','system','categories_init'); \ No newline at end of file