You are here

function bbcode_filter_info in Bbcode 7

Implement hook_filter_info

File

./bbcode.module, line 7

Code

function bbcode_filter_info() {
  $filters['bbcode'] = array(
    'title' => t('Convert BBCode to HTML'),
    'process callback' => '_bbcode_process',
    'settings callback' => '_bbcode_settings',
    'default settings' => array(
      'bbcode_make_links' => 1,
      'bbcode_filter_nofollow' => 1,
      'bbcode_encode_mailto' => 1,
      'bbcode_paragraph_breaks' => 2,
      'bbcode_debug' => 0,
    ),
    'tips callback' => '_bbcode_tips',
    'cache' => FALSE,
  );
  return $filters;
}