function hook_social_filter_format_default_alter in Open Social 8.9
Same name and namespace in other branches
- 10.3.x modules/social_features/social_core/social_core.api.php \hook_social_filter_format_default_alter()
- 10.0.x modules/social_features/social_core/social_core.api.php \hook_social_filter_format_default_alter()
- 10.1.x modules/social_features/social_core/social_core.api.php \hook_social_filter_format_default_alter()
- 10.2.x modules/social_features/social_core/social_core.api.php \hook_social_filter_format_default_alter()
Provide a method to alter the default filter format for a content type.
Parameters
string $filter_format: The filter format that is default.
1 invocation of hook_social_filter_format_default_alter()
- social_core_filter_process_format in modules/
social_features/ social_core/ social_core.module - Remove ability of selecting format if full_html is available.
File
- modules/
social_features/ social_core/ social_core.api.php, line 21 - Hooks provided by the Social core module.
Code
function hook_social_filter_format_default_alter(&$filter_format) {
$filter_format = 'full_html';
}