diff options
| author | Tristan Zur <tzur@webserver.ccwn.org> | 2015-06-10 20:55:53 +0200 |
|---|---|---|
| committer | Tristan Zur <tzur@webserver.ccwn.org> | 2015-06-10 20:55:53 +0200 |
| commit | 406abd7c4df1ace2cd3e4e17159e8941a2e8c0c4 (patch) | |
| tree | a324be16021f44f2fd6d55e609f47024e945b1db /modules/thumbnav/helpers/thumbnav_event.php | |
Initial import
Diffstat (limited to 'modules/thumbnav/helpers/thumbnav_event.php')
| -rw-r--r-- | modules/thumbnav/helpers/thumbnav_event.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/modules/thumbnav/helpers/thumbnav_event.php b/modules/thumbnav/helpers/thumbnav_event.php new file mode 100644 index 0000000..c0e8243 --- /dev/null +++ b/modules/thumbnav/helpers/thumbnav_event.php @@ -0,0 +1,20 @@ +<?php defined("SYSPATH") or die("No direct script access."); +class thumbnav_event_Core { + + static function activate() { + thumbnav::check_config(); + } + + static function deactivate() { + site_status::clear("thumbnav_config"); + } + + static function admin_menu($menu, $theme) { + $menu + ->get("settings_menu") + ->append(Menu::factory("link") + ->id("thumbnav") + ->label(t("Thumb Navigator")) + ->url(url::site("admin/thumbnav"))); + } +} |
