smilies - add param to only list default emoticons
This commit is contained in:
parent
42d139ee82
commit
803bff4043
@ -1166,7 +1166,7 @@ function get_mood_verbs() {
|
|||||||
*
|
*
|
||||||
* @return Returns array with keys 'texts' and 'icons'
|
* @return Returns array with keys 'texts' and 'icons'
|
||||||
*/
|
*/
|
||||||
function list_smilies() {
|
function list_smilies($default_only = false) {
|
||||||
|
|
||||||
$texts = array(
|
$texts = array(
|
||||||
'<3',
|
'<3',
|
||||||
@ -1242,10 +1242,15 @@ function list_smilies() {
|
|||||||
);
|
);
|
||||||
|
|
||||||
$params = array('texts' => $texts, 'icons' => $icons);
|
$params = array('texts' => $texts, 'icons' => $icons);
|
||||||
|
|
||||||
|
if($default_only)
|
||||||
|
return $params;
|
||||||
|
|
||||||
call_hooks('smilie', $params);
|
call_hooks('smilie', $params);
|
||||||
|
|
||||||
return $params;
|
return $params;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Replaces text emoticons with graphical images.
|
* @brief Replaces text emoticons with graphical images.
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user