You are here

function qtip_filter in qTip (Stylish jQuery Tooltips) 6

Same name and namespace in other branches
  1. 6.2 qtip.module \qtip_filter()

Implementation of hook_filter()

File

./qtip.module, line 99

Code

function qtip_filter($op, $delta = 0, $format = -1, $text = '') {
  switch ($op) {
    case 'list':
      return array(
        0 => t('qTips'),
      );
    case 'description':
      return t("Generate stylish tooltips. Format: [qtip:Tooltip Link|Tooltip Header(optional)|Tooltip content]");
    case 'prepare':
      return $text;
    case 'process':
      $text = qtip_replacement($text);
      return $text;
    default:
      return $text;
  }
}