aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-04-25 16:36:37 -0700
committerzotlabs <mike@macgirvin.com>2017-04-25 16:36:37 -0700
commita342a5f8e062bf3b1d8cfebaaa64214c7dae49cb (patch)
treeff4fb8c73c736ccbcb63aa1ffed187a489aa8d20 /include/text.php
parentf1c6fd08c462b663a26cf58cfd81591129057c41 (diff)
downloadvolse-hubzilla-a342a5f8e062bf3b1d8cfebaaa64214c7dae49cb.tar.gz
volse-hubzilla-a342a5f8e062bf3b1d8cfebaaa64214c7dae49cb.tar.bz2
volse-hubzilla-a342a5f8e062bf3b1d8cfebaaa64214c7dae49cb.zip
smilies - add param to only list default emoticons
Diffstat (limited to 'include/text.php')
-rw-r--r--include/text.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/text.php b/include/text.php
index d9ee40fa9..14a60f060 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',
@@ -1240,10 +1240,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.
*