You are here

function shortcode_filter_tips in Shortcode 7

Same name and namespace in other branches
  1. 6 shortcode.module \shortcode_filter_tips()

Implementation of hook_filter_tips().

File

./shortcode.module, line 124

Code

function shortcode_filter_tips($delta, $format, $long = FALSE) {
  static $sent = array();
  if (isset($sent[$format])) {

    // do not send on the html corrector
    return '';
  }
  $tips = shortcode_tips_all($format, $long);
  if ($tips) {
    $tips = '<fieldset><legend>' . t('Shortcodes') . '</legend><div>' . $tips . '</div></fieldset>';
  }
  $sent[$format] = TRUE;
  return $tips;
}