You are here

function acquia_spi_data_store_get in Acquia Connector 7.2

Same name and namespace in other branches
  1. 6.2 acquia_spi/acquia_spi.module \acquia_spi_data_store_get()
  2. 7.3 acquia_spi/acquia_spi.module \acquia_spi_data_store_get()

Get SPI data out of local storage.

Parameters

array Array of keys to extract data for.:

Return value

array Stored data or false if no data is retrievable from storage.

4 calls to acquia_spi_data_store_get()
AcquiaSPITestCase::testAcquiaSPIDataStore in acquia_spi/tests/acquia_spi.test
acquia_spi_check_files_present in acquia_spi/acquia_spi.module
Check to see if the unneeded release files with Drupal are removed
acquia_spi_get in acquia_spi/acquia_spi.module
Gather site profile information about this site.
acquia_spi_get_version_info in acquia_spi/acquia_spi.module
Attempt to determine the version of Drupal being used. Note, there is better information on this in the common.inc file.

File

acquia_spi/acquia_spi.module, line 122
Send site profile information (NSPI) and system data to Acquia Insight.

Code

function acquia_spi_data_store_get($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;
}