4 * @file mod/smilies.php
7 require_once("include/Smilies.php");
9 function smilies_content(App &$a) {
10 if ($a->argv[1]==="json"){
11 $tmp = Smilies::get_list();
13 for($i = 0; $i < count($tmp['texts']); $i++) {
14 $results[] = array('text' => $tmp['texts'][$i], 'icon' => $tmp['icons'][$i]);
16 json_return_and_die($results);
19 return Smilies::replace('',true);