4 * @file mod/smilies.php
7 use Friendica\Content\Smilies;
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[] = array('text' => $tmp['texts'][$i], 'icon' => $tmp['icons'][$i]);
21 json_return_and_die($results);
23 return Smilies::replace('', true);