*/ use Friendica\Core\Hook; use Friendica\DI; function calc_install() { Hook::register('app_menu', 'addon/calc/calc.php', 'calc_app_menu'); } function calc_app_menu(array &$b) { $b['app_menu'][] = '
Calculator
'; } /** * This is a statement rather than an actual function definition. The simple * existence of this method is checked to figure out if the addon offers a * module. */ function calc_module() {} function calc_init() { $x = <<< EOT EOT; DI::page()['htmlhead'] .= $x; } function calc_content($app) { $o = ''; $o .= <<< EOT

Calculator



EOT; return $o; }