1 common.inc tempstore_clear($collection, $name)

Removes an object from the semi-persistent key-value store.

Parameters

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

string $name: The name of the object being cleared.

Related topics

File

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

Code

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