function geshifilter_filter_info in GeSHi Filter for syntax highlighting 7
Implements hook_filter_info().
File
- ./
geshifilter.module, line 170 - An input filter for syntax highlighting using the GeSHi library.
Code
function geshifilter_filter_info() {
$filters = array();
$filters['geshifilter'] = array(
'title' => t('GeSHi filter'),
'description' => t('Enables syntax highlighting of inline/block source code using the GeSHi engine'),
'prepare callback' => 'geshifilter_prepare_callback',
'process callback' => 'geshifilter_process_callback',
'tips callback' => 'geshifilter_filter_tips',
'settings callback' => 'geshifilter_filter_settings_callback',
'default settings' => array(
'allowed_html' => '<a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>',
'filter_html_help' => 1,
'filter_html_nofollow' => 0,
),
);
return $filters;
}