X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=smilies_adult%2Fsmilies_adult.php;h=b55a0a2feb768594dd8fefcec04bf63bb8f4b74d;hb=1c7b3124429d83082223253b0f3b6d95d1f5dfcb;hp=bb673f23de8ddfe14f46f4d45d2c83b59ed41cfd;hpb=39dd3dffe07efd69fa1ac6d0bd243c7fc0e3a66f;p=friendica-addons.git
diff --git a/smilies_adult/smilies_adult.php b/smilies_adult/smilies_adult.php
index bb673f23..b55a0a2f 100644
--- a/smilies_adult/smilies_adult.php
+++ b/smilies_adult/smilies_adult.php
@@ -8,36 +8,31 @@
* This is a template for how to extend the "smily" code.
*
*/
-use Friendica\Core\Addon;
+use Friendica\Core\Hook;
+use Friendica\DI;
function smilies_adult_install() {
- Addon::registerHook('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() {
- Addon::unregisterHook('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