friendica-addons/namethingy/namethingy.php

38 lines
822 B
PHP
Raw Permalink Normal View History

2012-03-30 12:35:55 +00:00
<?php
/**
*
* Name: NameThingy
* Description: The Ultimate Random Name Generator
* Version: 1.0
* Author: Mike Macgirvin <http://macgirvin.com/profile/mike>
2018-02-08 05:40:21 +00:00
* Status: Unsupported
2012-03-30 12:35:55 +00:00
*/
use Friendica\Core\Hook;
2012-03-30 12:35:55 +00:00
function namethingy_install() {
Hook::register('app_menu', 'addon/namethingy/namethingy.php', 'namethingy_app_menu');
2012-03-30 12:35:55 +00:00
}
function namethingy_uninstall() {
Hook::unregister('app_menu', 'addon/namethingy/namethingy.php', 'namethingy_app_menu');
2012-03-30 12:35:55 +00:00
}
function namethingy_app_menu($a,&$b) {
$b['app_menu'][] = '<div class="app-title"><a href="namethingy">NameThingy</a></div>';
}
function namethingy_module() {}
function namethingy_content(&$a) {
$baseurl = $a->getBaseURL() . '/addon/namethingy';
2012-03-30 12:35:55 +00:00
$o .= <<< EOT
<iframe src="http://namethingy.com" width="900" height="700" />
EOT;
return $o;
}