function acquia_spi_data_store_get in Acquia Connector 7.3
Same name and namespace in other branches
- 6.2 acquia_spi/acquia_spi.module \acquia_spi_data_store_get()
- 7.2 acquia_spi/acquia_spi.module \acquia_spi_data_store_get()
Get SPI data out of local storage.
Parameters
array $keys: Array of keys to extract data for.
Return value
array Stored data or false if no data is retrievable from storage.
2 calls to acquia_spi_data_store_get()
- AcquiaSPITestCase::testAcquiaSpiDataStore in acquia_spi/
tests/ acquia_spi.test - Needs comment.
- acquia_spi_get in acquia_spi/
acquia_spi.module - Gather site profile information about this site.
File
- acquia_spi/
acquia_spi.module, line 140 - Send site profile information (NSPI) and system data to Acquia Insight.
Code
function acquia_spi_data_store_get(array $keys) {
$store = array();
foreach ($keys as $key) {
$cache = cache_get('acquia.spi.' . $key, 'cache');
if ($cache && !empty($cache->data)) {
$store[$key] = $cache->data;
}
}
return $store;
}