You are here

function spoiler_filter_info in Spoiler 7

Implements hook_filter_info().

File

./spoiler.module, line 40
Spoiler module: This module allows users to hide potential "spoiler" content by inserting them between [spoiler][/spoiler] tags. These tags will be converted to HTML by this filter. If JavaScript is available, then a button will be presented…

Code

function spoiler_filter_info() {
  $filters['spoiler'] = array(
    'title' => t('Spoiler filter'),
    'description' => t('Converts [spoiler][/spoiler] tags to markup which hides the content within. When Javascript is available, a button is made available which can be clicked to view the hidden content. Alternatively, when Javascript is disabled, the filter sets the foreground and background colours to the same value, effectively rendering the content within invisible until highlighted.'),
    'process callback' => '_spoiler_filter_process',
    'tips callback' => '_spoiler_filter_tips',
  );
  return $filters;
}