You are here

function smileys_filter_tips in Smileys 5

Same name and namespace in other branches
  1. 6 smileys.module \smileys_filter_tips()

Implementation of hook_filter_tips().

File

./smileys.module, line 24

Code

function smileys_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 />' . smileys_table();
  }
  else {
    $GLOBALS['display_smileys_block'] = true;
    return t('<a href="!smileys_help">Textual smileys</a> will be replaced with graphical ones.', array(
      '!smileys_help' => url('filter/tips/' . $format, NULL, 'filter-smileys-' . $delta),
    ));
  }
}