You are here

function acquia_spi_get_db_variable in Acquia Connector 7.3

Same name and namespace in other branches
  1. 7.2 acquia_spi/acquia_spi.module \acquia_spi_get_db_variable()

Get a variable from the DB explicitely skipping global $conf array.

1 call to acquia_spi_get_db_variable()
acquia_spi_get_variables_data in acquia_spi/acquia_spi.module
Get all system variables.

File

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

Code

function acquia_spi_get_db_variable($name) {
  $result = db_query("SELECT value FROM {variable} WHERE name = :name", array(
    ':name' => $name,
  ));
  if ($result
    ->rowCount() == 1) {
    return unserialize($result
      ->fetchField());
  }
  return NULL;
}