function party_hat_hat_machine_name_exists in Party 8.2
Same name and namespace in other branches
- 7 modules/party_hat/party_hat.admin.inc \party_hat_hat_machine_name_exists()
Helper to check whether a machine name already exists.
1 string reference to 'party_hat_hat_machine_name_exists'
- party_hat_form in modules/
party_hat/ party_hat.admin.inc - Entity form for party hats.
File
- modules/
party_hat/ party_hat.admin.inc, line 192 - Contains admin page callbacks for the party hats module.
Code
function party_hat_hat_machine_name_exists($value) {
$exists = db_query_range('SELECT 1 FROM {party_hat} WHERE `name` = :name', 0, 1, array(
':name' => $value,
))
->fetchField();
return $exists;
}