X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=smilies_adult%2Fsmilies_adult.php;h=b55a0a2feb768594dd8fefcec04bf63bb8f4b74d;hb=1c7b3124429d83082223253b0f3b6d95d1f5dfcb;hp=d5035bdc9bb3cfa3545044d27d067f0b9c3d77f9;hpb=f104364c82546656e5471b634429e2f22bac02a5;p=friendica-addons.git
diff --git a/smilies_adult/smilies_adult.php b/smilies_adult/smilies_adult.php
index d5035bdc..b55a0a2f 100644
--- a/smilies_adult/smilies_adult.php
+++ b/smilies_adult/smilies_adult.php
@@ -8,31 +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'][] = '
';
+
}
\ No newline at end of file