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.


$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 ./
Administratively add/update a client.


./, line 298


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;