X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=smilies_adult%2Fsmilies_adult.php;h=b55a0a2feb768594dd8fefcec04bf63bb8f4b74d;hb=1c7b3124429d83082223253b0f3b6d95d1f5dfcb;hp=19c13b4066473f41af51c9ec63fe7f690b87d11f;hpb=b5bbb0a1e56c4611ff6d8f041c030857bad1eeb4;p=friendica-addons.git
diff --git a/smilies_adult/smilies_adult.php b/smilies_adult/smilies_adult.php
index 19c13b40..b55a0a2f 100644
--- a/smilies_adult/smilies_adult.php
+++ b/smilies_adult/smilies_adult.php
@@ -8,35 +8,31 @@
* This is a template for how to extend the "smily" code.
*
*/
+use Friendica\Core\Hook;
+use Friendica\DI;
function smilies_adult_install() {
- register_hook('smilie', 'addon/smilies_adult/smilies_adult.php', 'smilies_adult_smilies');
+ Hook::register('smilie', 'addon/smilies_adult/smilies_adult.php', 'smilies_adult_smilies');
}
-function smilies_adult_uninstall() {
- unregister_hook('smilie', 'addon/smilies_adult/smilies_adult.php', 'smilies_adult_smilies');
-}
-
-
-
function smilies_adult_smilies(&$a,&$b) {
$b['texts'][] = '(o)(o)';
- $b['icons'][] = '
';
+ $b['icons'][] = '
';
$b['texts'][] = '(.)(.)';
- $b['icons'][] = '
';
+ $b['icons'][] = '
';
$b['texts'][] = ':bong';
- $b['icons'][] = '
';
+ $b['icons'][] = '
';
$b['texts'][] = ':sperm';
- $b['icons'][] = '
';
+ $b['icons'][] = '
';
$b['texts'][] = ':drunk';
- $b['icons'][] = '
';
+ $b['icons'][] = '
';
$b['texts'][] = ':finger';
- $b['icons'][] = '
';
+ $b['icons'][] = '
';
}
\ No newline at end of file