filter_format_allowcache

  1. drupal
    1. 4.7
    2. 5 filter.module
    3. 6 filter.module
    4. 7 filter.module
Versions
4.7 – 6 filter_format_allowcache($format)
7 filter_format_allowcache($format_id)

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

▾ 2 functions call 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.

Code

modules/filter.module, line 680

<?php
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];
}
?>