filter_format_allowcache

5 filter.module filter_format_allowcache($format)
6 filter.module filter_format_allowcache($format)
7 filter.module filter_format_allowcache($format_id)
8 filter.module filter_format_allowcache($format_id)

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

2 calls to filter_format_allowcache()

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];
}
Login or register to post comments