function smiley_filter_tips in Smiley 7
Same name and namespace in other branches
- 6 smiley.module \smiley_filter_tips()
 
Return HTML for filter tips.
Parameters
object $filter: An object representing the filter.
object $format: An object representing the text format the filter is contained in.
bool $long: Whether this callback should return a short tip to display in a form (FALSE), or whether a more elaborate filter tips should be returned for theme_filter_tips() (TRUE).
Return value
string Translated text to display as a tip.
1 string reference to 'smiley_filter_tips'
- smiley_filter_info in ./
smiley.module  - Implements hook_filter_info().
 
File
- ./
smiley.module, line 207  - Implements the necessary hooks.
 
Code
function smiley_filter_tips($filter, $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_filter_tips_table();
  }
  else {
    return t('<a href="!smiley_help">Textual smiley</a> will be replaced with graphical ones.', array(
      '!smiley_help' => url('filter/tips', array(
        'fragment' => 'filter-smiley',
      )),
    ));
  }
}