1 filter.module filter_set_format_tempstore($item)

Store changes to a format in the temporary store.

Parameters

$item: The format item to save into tempstore.

File

core/modules/filter/filter.module, line 1931
Framework for handling the filtering of content.

Code

function filter_set_format_tempstore($item) {
  if (empty($item->format)) {
    return;
  }

  tempstore_set('filter_store', $item->format, $item, 604800);
}