function filter_resolve_format

6.x filter.module filter_resolve_format($format)

Resolve a format id, including the default format.

4 calls to filter_resolve_format()
check_markup in drupal-6.x/modules/filter/filter.module
Run all the enabled filters on a piece of text.
filter_access in drupal-6.x/modules/filter/filter.module
Returns TRUE if the user is allowed to access this format.
filter_form in drupal-6.x/modules/filter/filter.module
Generates a selector for choosing a format in a form.
filter_format_allowcache in drupal-6.x/modules/filter/filter.module
Check if text in a certain input format is allowed to be cached.

File

drupal-6.x/modules/filter/filter.module, line 355
Framework for handling filtering of content.

Code

function filter_resolve_format($format) {
  return $format == FILTER_FORMAT_DEFAULT ? variable_get('filter_default_format', 1) : $format;
}