function filter_format_allowcache
7.x filter.module | filter_format_allowcache( |
6.x filter.module | filter_format_allowcache($format) |
Check if text in a certain input format is allowed to be cached.
2 calls to filter_format_allowcache()
- check_markup in drupal-6.x/
modules/ filter/ filter.module - Run all the enabled filters on a piece of text.
- search_index in drupal-6.x/
modules/ search/ search.module - Update the full-text search index for a particular item.
File
- drupal-6.x/
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];
}