function codefilter_filter_info in Code Filter 7
Implements hook_filter_info().
2 calls to codefilter_filter_info()
- CodeFilterPrismUnitTestCase::getFilter in modules/
codefilter_prism/ codefilter_prism.test - Returns a codefilter filter defintion, with prism enabled.
- CodeFilterUnitTestCase::setUp in ./
codefilter.test - Sets up unit test environment.
File
- ./
codefilter.module, line 152 - Text filter for highlighting PHP source code.
Code
function codefilter_filter_info() {
$filters['codefilter'] = array(
'title' => t('Code filter'),
'description' => t('Allows users to post code verbatim using <code> and <?php ?> tags.'),
'prepare callback' => '_codefilter_prepare',
'process callback' => '_codefilter_process',
'settings callback' => '_codefilter_settings',
'default settings' => array(
'nowrap_expand' => FALSE,
'codefilter_prism' => FALSE,
),
'tips callback' => '_codefilter_tips',
);
return $filters;
}