diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-04-16 22:10:52 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-04-16 22:10:52 +0000 |
commit | 6729a2d0d2faeb07ca8e79b5162c3be269e01b66 (patch) | |
tree | 119609339fa2914d81f43a98a8f9fd6193db0d34 /mod/categories | |
parent | 2b2afd98c05139c1a5c25f1752e2bb412e26e335 (diff) | |
download | elgg-6729a2d0d2faeb07ca8e79b5162c3be269e01b66.tar.gz elgg-6729a2d0d2faeb07ca8e79b5162c3be269e01b66.tar.bz2 |
Fixes #3310. Applied lie2815's patch to use activate.php and deactivate.php instead of manifest on_de/activate fields in plugins.
git-svn-id: http://code.elgg.org/elgg/trunk@9002 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/categories')
-rw-r--r-- | mod/categories/manifest.xml | 2 | ||||
-rw-r--r-- | mod/categories/start.php | 21 |
2 files changed, 0 insertions, 23 deletions
diff --git a/mod/categories/manifest.xml b/mod/categories/manifest.xml index f02d7a8cb..43df13d02 100644 --- a/mod/categories/manifest.xml +++ b/mod/categories/manifest.xml @@ -14,6 +14,4 @@ <version>2010030101</version> </requires> <admin_interface>advanced</admin_interface> - <on_activate>categories_on_activate</on_activate> - <on_deactivate>categories_on_deactivate</on_deactivate> </plugin_manifest> diff --git a/mod/categories/start.php b/mod/categories/start.php index 190996d9b..ff5b01efc 100644 --- a/mod/categories/start.php +++ b/mod/categories/start.php @@ -54,24 +54,3 @@ function categories_save($event, $object_type, $object) { } return TRUE; } - -/** - * Add a reminder to set default categories. - */ -function categories_on_activate() { - $site = elgg_get_site_entity(); - - if (!$site->categories) { - $url = elgg_normalize_url('admin/plugin_settings/categories'); - $message = elgg_echo('categories:on_enable_reminder', array($url)); - elgg_add_admin_notice('categories_admin_notice_no_categories', $message); - } - return TRUE; -} - -/** - * Clean up admin notices on disable. - */ -function categories_on_deactivate() { - elgg_delete_admin_notice('categories_admin_notice_no_categories'); -} |