1 filter.module | filter_get_format_tempstore($name) |
Get a format currently being edited from the tempstore.
Parameters
string $name: The machine name of the format item.
File
- core/
modules/ filter/ filter.module, line 1914 - Framework for handling the filtering of content.
Code
function filter_get_format_tempstore($name) {
$caches = &backdrop_static(__FUNCTION__, array());
if (!isset($caches[$name])) {
// Try loading from tempstore first.
$item = tempstore_get('filter_store', $name);
$caches[$name] = $item;
}
return $caches[$name];
}