You are here

function filter_format_allowcache in Drupal 4

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

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

2 calls to filter_format_allowcache()
check_markup in modules/filter.module
Run all the enabled filters on a piece of text.
search_index in modules/search.module
Update the full-text search index for a particular item.

File

modules/filter.module, line 679
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];
}