Same name and namespace in other branches
  1. 4.6.x modules/filter.module \filter_format_allowcache()
  2. 4.7.x modules/filter.module \filter_format_allowcache()
  3. 5.x modules/filter/filter.module \filter_format_allowcache()
  4. 7.x modules/filter/filter.module \filter_format_allowcache()

Check if text in a certain input format is allowed to be cached.

1 call to filter_format_allowcache()
check_markup in modules/filter/filter.module
Run all the enabled filters on a piece of text.

File

modules/filter/filter.module, line 361
Framework for handling filtering of content.

Code

function filter_format_allowcache($format) {
  static $cache = array();
  $format = filter_resolve_format($format);
  if (!isset($cache[$format])) {
    $cache[$format] = db_result(db_query('SELECT cache FROM {filter_formats} WHERE format = %d', $format));
  }
  return $cache[$format];
}