1 common.inc tempstore_clear_all($collection)

Removes an entire group of objects from the semi-persistent key-value store.

Parameters

string $collection: A string defining the collection or group indicator.

Related topics

File

core/includes/common.inc, line 1688
Common functions that many Backdrop modules will need to reference.

Code

function tempstore_clear_all($collection) {
  db_delete('tempstore')
    ->condition('collection', $collection)
    ->execute();
}