You are here

function _icon_filter_tips in Icon API 7

Same name and namespace in other branches
  1. 8 modules/icon_filter/icon_filter.module \_icon_filter_tips()

Tips callback for icon filter.

1 string reference to '_icon_filter_tips'
icon_filter_filter_info in modules/icon_filter/icon_filter.module
Implements hook_filter_info().

File

modules/icon_filter/icon_filter.module, line 26
icon_filter.module Provides a filter for text fields to replace an icon token with icon markup.

Code

function _icon_filter_tips($filter, $format, $long = FALSE) {
  if ($long) {
    return t('Converts all [icon:%bundle:%icon] tags into the correct markup necessary for displaying a specific icon. Replace the %bundle with the bundle machine name and replace %icon with the icon machine name.');
  }
  else {
    return t('Convert [icon:%bundle:%icon] tags.');
  }
}