Same name and namespace in other branches
- 4.7.x modules/filter.module \filter_resolve_format()
- 6.x modules/filter/filter.module \filter_resolve_format()
Resolve a format id, including the default format.
4 calls to filter_resolve_format()
- check_markup in modules/
filter/ filter.module - Run all the enabled filters on a piece of text.
- filter_access in modules/
filter/ filter.module - Returns TRUE if the user is allowed to access this format.
- filter_form in modules/
filter/ filter.module - Generate a selector for choosing a format in a form.
- filter_format_allowcache in modules/
filter/ filter.module - Check if text in a certain input format is allowed to be cached.
File
- modules/
filter/ filter.module, line 689 - Framework for handling filtering of content.
Code
function filter_resolve_format($format) {
return $format == FILTER_FORMAT_DEFAULT ? variable_get('filter_default_format', 1) : $format;
}