function acquia_spi_uid_0_present in Acquia Connector 6.2
Same name and namespace in other branches
- 7.3 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 1518 - Send site profile information (NSPI) and system data to Acquia Insight.
Code
function acquia_spi_uid_0_present() {
$result = db_fetch_array(db_query("SELECT count(uid) as count FROM {users} WHERE uid = 0"));
return $result['count'] == 1 ? TRUE : FALSE;
}