Persistent Arrays API

Categories

Component ID

2101659

Component name

Persistent Arrays API

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

This projects provides an API for module developers to store arrays in the database using PHP's serialize function. The following function does just that.

persistent_array_set($name, $array);

The saved array can be fetched anywhere in the code with the following function, which uses PHP's unserialize function.

persistent_array_get($name);

The module creates a table {persistent_arrays} within the database and takes care of all queries. Please see module's help page at 'admin/help#persistent_arrays' for more details.