aboutsummaryrefslogtreecommitdiffstats
path: root/doc/hook/smilie.bb
blob: 575acc178ba5653fc4898dcbe39fad953f915dc2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[h2]smilie[/h2]


Called when processing translation of emoticons. It is passed an array containing two sub-arrays:

	array(
		'texts' => array('text1','text2',...),
		'icons' => array('icon1','icon2',...)
	);

	texts is the emoticon text - for example ':-)' for a traditional smile face.
	icons is the HTML used as a replacement. For example
      '<img class="smiley" src="https://localhost/images/smiley-smile.gif" alt=":-)" />'

	If adding or removing an entry from either array, the corresponding element from the matching array must also 
	be added or removed. Emoticons less than three characters in length or not recommended as they get triggered 
	incorrectly quite often. Extended emoticons are indicated by convention using a preceding colon, for example 
		
		:walrus_kissing_a_baby