function acquia_spi_data_store_set in Acquia Connector 6.2
Same name and namespace in other branches
- 7.3 acquia_spi/acquia_spi.module \acquia_spi_data_store_set()
- 7.2 acquia_spi/acquia_spi.module \acquia_spi_data_store_set()
Put SPI data in local storage.
Parameters
array $data Keyed array of data to store.:
int $expire Expire time or null to use default of 1 day.:
1 call to acquia_spi_data_store_set()
- acquia_spi_boot in acquia_spi/
acquia_spi.module - Implements hook_boot().
File
- acquia_spi/
acquia_spi.module, line 111 - Send site profile information (NSPI) and system data to Acquia Insight.
Code
function acquia_spi_data_store_set($data, $expire = NULL) {
if (is_null($expire)) {
$expire = time() + 60 * 60 * 24;
}
foreach ($data as $key => $value) {
cache_set('acquia.spi.' . $key, $value, 'cache', $expire);
}
}