Addon class
plugin moved to Addon src class
This commit is contained in:
parent
e97235353f
commit
0afd633346
81 changed files with 567 additions and 566 deletions
|
@ -6,19 +6,19 @@
|
|||
* Author: Michael Vogel <https://pirati.ca/profile/heluecht>
|
||||
*
|
||||
*/
|
||||
|
||||
use Friendica\Core\Addon;
|
||||
use Friendica\Core\Cache;
|
||||
|
||||
function googlemaps_install()
|
||||
{
|
||||
register_hook('render_location', 'addon/googlemaps/googlemaps.php', 'googlemaps_location');
|
||||
Addon::registerHook('render_location', 'addon/googlemaps/googlemaps.php', 'googlemaps_location');
|
||||
|
||||
logger("installed googlemaps");
|
||||
}
|
||||
|
||||
function googlemaps_uninstall()
|
||||
{
|
||||
unregister_hook('render_location', 'addon/googlemaps/googlemaps.php', 'googlemaps_location');
|
||||
Addon::unregisterHook('render_location', 'addon/googlemaps/googlemaps.php', 'googlemaps_location');
|
||||
|
||||
logger("removed googlemaps");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue