function glossify_filter_info in Glossify 7.4
Implements hook_filter_info().
File
- ./
glossify.module, line 58 - Glossify module.
Code
function glossify_filter_info() {
$filters = array();
if (module_exists('taxonomy')) {
$filters['glossify_taxonomy'] = array(
'title' => t('Glossify with taxonomy'),
'description' => t('Links taxonomy terms appearing in content to their taxonomy term page.'),
'process callback' => '_glossify_taxonomy_process',
'settings callback' => '_glossify_taxonomy_settings',
'default settings' => array(
'glossify_taxonomy_vocabs' => array(),
'glossify_taxonomy_case_sensitivity' => FALSE,
'glossify_taxonomy_first_only' => TRUE,
'glossify_taxonomy_tooltips' => FALSE,
),
);
}
$filters['glossify_content'] = array(
'title' => t('Glossify with content'),
'description' => t('Links titles of content appearing in other content to their page.'),
'process callback' => '_glossify_content_process',
'settings callback' => '_glossify_content_settings',
'default settings' => array(
'glossify_content_types' => array(),
'glossify_content_case_sensitivity' => FALSE,
'glossify_content_first_only' => TRUE,
'glossify_content_tooltips' => FALSE,
'glossify_content_tooltip_field' => 'body',
),
);
if (defined('FILTER_TYPE_TRANSFORM_REVERSIBLE')) {
$filters['glossify_taxonomy']['type'] = FILTER_TYPE_TRANSFORM_REVERSIBLE;
$filters['glossify_content']['type'] = FILTER_TYPE_TRANSFORM_REVERSIBLE;
}
return $filters;
}