filter_format_allowcache

Definition

filter_format_allowcache($format)
modules/filter/filter.module, line 361

Description

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

Code

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

Drupal is a registered trademark of Dries Buytaert.