You are here

function _drd_server_count in Drupal Remote Dashboard Server 6.2

Same name and namespace in other branches
  1. 7.2 drd_server.module \_drd_server_count()

Parameters

string $table:

string $primary:

Return value

int

1 call to _drd_server_count()
drd_server_heartbeat in ./drd_server.module

File

./drd_server.module, line 965

Code

function _drd_server_count($table, $primary) {
  try {
    return db_result(db_query("SELECT COUNT(DISTINCT " . $primary . ") FROM {" . $table . "}"));
  } catch (Exception $ex) {
    return 0;
  }
}