3 * @file mod/smilies.php
6 use Friendica\Content\Smilies;
7 use Friendica\Core\System;
10 * @param object $a App
13 function smilies_content(App $a)
15 if ($a->argv[1] === "json") {
16 $tmp = Smilies::getList();
18 for ($i = 0; $i < count($tmp['texts']); $i++) {
19 $results[] = ['text' => $tmp['texts'][$i], 'icon' => $tmp['icons'][$i]];
21 System::jsonExit($results);
23 return Smilies::replace('', true);