function likebtn_filter_info in Like Button 7
Same name and namespace in other branches
- 8.2 likebtn.module \likebtn_filter_info()
Implements hook_filter_info().
File
- ./
likebtn.module, line 248 - Implements the LikeBtn module.
Code
function likebtn_filter_info() {
$filters = array();
$filters['likebtn'] = array(
'title' => t('Enable LikeBtn shortcodes'),
// 'description' => t('Sets up a filter that enables LikeBtn shortcodes.'),.
'prepare callback' => 'likebtn_filter_prepare',
'process callback' => 'likebtn_filter_process',
// The name of a function that returns end-user-facing filter
// usage guidelines for the filter.
'tips callback' => 'likebtn_filter_tips',
// (default TRUE) Specifies whether the filtered text can be cached.
// Note that setting this to FALSE makes the entire text format not
// cacheable, which may have an impact on the site's overall performance.
'cache' => TRUE,
);
return $filters;
}