mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-07 09:54:27 +02:00
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
|
@ -5,11 +5,11 @@
|
|||
* Version: 0.2
|
||||
* Author: Johannes Schwab <https://friendica.jschwab.org/profile/ddorian>
|
||||
*/
|
||||
|
||||
use Friendica\Core\Addon;
|
||||
|
||||
function smileybutton_install() {
|
||||
//Register hooks
|
||||
register_hook('jot_tool', 'addon/smileybutton/smileybutton.php', 'show_button');
|
||||
Addon::registerHook('jot_tool', 'addon/smileybutton/smileybutton.php', 'show_button');
|
||||
|
||||
logger("installed smileybutton");
|
||||
}
|
||||
|
@ -17,7 +17,7 @@ function smileybutton_install() {
|
|||
|
||||
function smileybutton_uninstall() {
|
||||
//Delet registered hooks
|
||||
unregister_hook('jot_tool', 'addon/smileybutton/smileybutton.php', 'show_button');
|
||||
Addon::unregisterHook('jot_tool', 'addon/smileybutton/smileybutton.php', 'show_button');
|
||||
|
||||
logger("removed smileybutton");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue