filter_resolve_format

Versions
4.7 – 6
filter_resolve_format($format)

Resolve a format id, including the default format.

▾ 4 functions call filter_resolve_format()

check_markup in modules/filter.module
Run all the enabled filters on a piece of text.
filter_access in modules/filter.module
Returns true if the user is allowed to access this format.
filter_form in modules/filter.module
Generate a selector for choosing a format in a form.
filter_format_allowcache in modules/filter.module
Check if text in a certain input format is allowed to be cached.

Code

modules/filter.module, line 673

<?php
function filter_resolve_format($format) {
  return $format == FILTER_FORMAT_DEFAULT ? variable_get('filter_default_format', 1) : $format;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.