You are here

function _support_client_path_exists in Support Ticketing System 7

Render API callback: Checks if a client path name is already taken.

Parameters

$value: The path.

Return value

Whether or not the path is already taken.

1 string reference to '_support_client_path_exists'
support_client_form in ./support.admin.inc
Administratively add/update a client.

File

./support.admin.inc, line 298
support.admin.inc

Code

function _support_client_path_exists($value) {
  $exists = FALSE;
  $result = db_query('SELECT 1 FROM {support_client} WHERE path = :value', array(
    ':value' => $value,
  ));
  foreach ($result as $path) {
    $exists = TRUE;
  }
  return $exists;
}