You are here

function sharemessage_check_machine_name_if_exist in Share Message 7

Same name and namespace in other branches
  1. 8 sharemessage.module \sharemessage_check_machine_name_if_exist()

Returns whether a machine name already exists.

1 string reference to 'sharemessage_check_machine_name_if_exist'
sharemessage_form in ./sharemessage.module
Share message form.

File

./sharemessage.module, line 396
New Sharing Module.

Code

function sharemessage_check_machine_name_if_exist($value) {
  return db_query_range('SELECT 1 FROM {sharemessage} WHERE name = :name', 0, 1, array(
    ':name' => $value,
  ))
    ->fetchField();
}