filter_format_allowcache

Versions
4.6 – 6
filter_format_allowcache($format)
7
filter_format_allowcache($format_id)

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

Code

modules/filter.module, line 605

<?php
function filter_format_allowcache($format) {
  static $cache = array();

  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
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.