function ctools_uuid_is_valid in Chaos Tool Suite (ctools) 7
Check that a string appears to be in the format of a UUID.
Parameters
$uuid: The string to test.
Return value
TRUE if the string is well formed.
See also
http://drupal.org/project/uuid
File
- ./
ctools.module, line 513 - CTools primary module file.
Code
function ctools_uuid_is_valid($uuid = '') {
if (empty($uuid)) {
return FALSE;
}
if (function_exists('uuid_is_valid') || module_exists('uuid')) {
return uuid_is_valid($uuid);
}
else {
ctools_include('uuid');
return uuid_is_valid($uuid);
}
}