calc.php 601 Bytes
Newer Older
friendica's avatar
friendica committed
1
<?php
2

friendica's avatar
friendica committed
3 4 5 6
/**
 * Name: Calculator App
 * Description: Simple Calculator Application
 * Version: 1.0
7 8
 * MinVersion: 1.4.2
 * Author: Mike Macgirvin <mike@macgirvin.com>
9
 * Maintainer: none
friendica's avatar
friendica committed
10 11
 */

12
require_once('addon/calc/Mod_Calc.php');
friendica's avatar
friendica committed
13 14

function calc_load() {
15
	Zotlabs\Extend\Hook::register('app_menu', 'addon/calc/calc.php', 'calc_app_menu');
friendica's avatar
friendica committed
16 17 18
}

function calc_unload() {
19
	Zotlabs\Extend\Hook::unregister('app_menu', 'addon/calc/calc.php', 'calc_app_menu');
friendica's avatar
friendica committed
20 21 22

}

23
function calc_app_menu(&$b) {
friendica's avatar
friendica committed
24 25 26 27
	$b['app_menu'][] = '<div class="app-title"><a href="calc">Calculator</a></div>'; 
}