aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-04-25 16:36:37 -0700
committerMario Vavti <mario@mariovavti.com>2017-04-26 14:09:45 +0200
commit803bff4043dae142999a34e7d706eea176328c69 (patch)
treeb7e01312a7fe9096c32c1ed7bc043d7af1879d5d
parent42d139ee82f9d442138b9f99e71485d18a86f52d (diff)
downloadvolse-hubzilla-803bff4043dae142999a34e7d706eea176328c69.tar.gz
volse-hubzilla-803bff4043dae142999a34e7d706eea176328c69.tar.bz2
volse-hubzilla-803bff4043dae142999a34e7d706eea176328c69.zip
smilies - add param to only list default emoticons
-rw-r--r--include/text.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/text.php b/include/text.php
index fa9dadc31..1fa03edab 100644
--- a/include/text.php
+++ b/include/text.php
@@ -1166,7 +1166,7 @@ function get_mood_verbs() {
*
* @return Returns array with keys 'texts' and 'icons'
*/
-function list_smilies() {
+function list_smilies($default_only = false) {
$texts = array(
'&lt;3',
@@ -1242,10 +1242,15 @@ function list_smilies() {
);
$params = array('texts' => $texts, 'icons' => $icons);
+
+ if($default_only)
+ return $params;
+
call_hooks('smilie', $params);
return $params;
}
+
/**
* @brief Replaces text emoticons with graphical images.
*