function smiley_filter_tips in Smiley 6
Same name and namespace in other branches
- 7 smiley.module \smiley_filter_tips()
Implementation of hook_filter_tips().
File
- ./
smiley.module, line 24
Code
function smiley_filter_tips($delta, $format, $long = false) {
if ($long) {
return t('If you include a textual smiley in your post (see chart below), it will be replaced by a graphical smiley.') . '<br />' . smiley_table();
}
else {
$GLOBALS['display_smiley_block'] = true;
return t('<a href="!smiley_help">Textual smiley</a> will be replaced with graphical ones.', array(
'!smiley_help' => url('filter/tips/' . $format, array(
'fragment' => 'filter-smiley-' . $delta,
)),
));
}
}