Same name and namespace in other branches
- 4.6.x modules/filter.module \filter_format_allowcache()
- 4.7.x modules/filter.module \filter_format_allowcache()
- 5.x modules/filter/filter.module \filter_format_allowcache()
- 6.x modules/filter/filter.module \filter_format_allowcache()
Checks if the text in a certain text format is allowed to be cached.
This function can be used to check whether the result of the filtering process can be cached. A text format may allow caching depending on the filters enabled.
Parameters
$format_id: The text format ID to check.
Return value
TRUE if the given text format allows caching, FALSE otherwise.
2 calls to filter_format_allowcache()
- hook_field_load in modules/
field/ field.api.php - Define custom load behavior for this module's field types.
- text_field_load in modules/
field/ modules/ text/ text.module - Implements hook_field_load().
File
- modules/
filter/ filter.module, line 649 - Framework for handling the filtering of content.
Code
function filter_format_allowcache($format_id) {
$format = filter_format_load($format_id);
return !empty($format->cache);
}