function _makemeeting_generate_url in Make Meeting Scheduler 7
Helper function to generate a unique keychain
Parameters
$field: The field to be unique
$length: Lengh of the keychain
Return value
string
1 call to _makemeeting_generate_url()
- node_makemeeting_insert in ./
makemeeting.module - Implementation of hook_node_insert()
File
- ./
makemeeting.module, line 1185 - Make Meeting module
Code
function _makemeeting_generate_url($field, $length) {
$url = _makemeeting_keygen($length);
$query = db_select('makemeeting_poll_heads', 'm')
->fields('m');
while ($query
->condition($field, $url)
->execute()
->rowCount() > 0) {
$url = _makemeeting_keygen($length);
}
return $url;
}