X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=tictac%2Ftictac.php;h=7a00349e4cd21613196036fe0523e11879b8435a;hb=c7c8934e2ce3ee76031d3257fac4d071b96a060d;hp=4d3a46b4da4f3d9e4e87940c06a57c0e3e4d551d;hpb=63d6c3f40f86f681d17f228f36bc744c6e9ac0a6;p=friendica-addons.git diff --git a/tictac/tictac.php b/tictac/tictac.php index 4d3a46b4..7a00349e 100644 --- a/tictac/tictac.php +++ b/tictac/tictac.php @@ -4,28 +4,31 @@ * Description: The TicTacToe game application * Version: 1.0 * Author: Mike Macgirvin + * Status: unsupported */ + +use Friendica\App; use Friendica\Core\Hook; use Friendica\DI; -function tictac_install() { +function tictac_install() +{ Hook::register('app_menu', 'addon/tictac/tictac.php', 'tictac_app_menu'); } -function tictac_app_menu($a,&$b) { +function tictac_app_menu(App $a, array &$b) +{ $b['app_menu'][] = '
' . DI::l10n()->t('Three Dimensional Tic-Tac-Toe') . '
'; } +/** + * 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 tictac_module() {} -function tictac_module() { - return; -} - - - - - -function tictac_content(&$a) { +function tictac_content(App $a) { $o = '';