function acquia_spi_uid_0_present in Acquia Connector 7.3
Same name and namespace in other branches
- 6.2 acquia_spi/acquia_spi.module \acquia_spi_uid_0_present()
- 7.2 acquia_spi/acquia_spi.module \acquia_spi_uid_0_present()
Check the presence of UID 0 in the users table.
Return value
bool Whether UID 0 is present.
1 call to acquia_spi_uid_0_present()
- acquia_spi_get in acquia_spi/
acquia_spi.module - Gather site profile information about this site.
File
- acquia_spi/
acquia_spi.module, line 1681 - Send site profile information (NSPI) and system data to Acquia Insight.
Code
function acquia_spi_uid_0_present() {
$count = db_query("SELECT uid FROM {users} WHERE uid = 0")
->rowCount();
return $count == 1 ? TRUE : FALSE;
}