function _ctools_uuid_generate_com in Chaos Tool Suite (ctools) 7
Generates a UUID using the Windows internal GUID generator.
See also
http://php.net/com_create_guid
1 string reference to '_ctools_uuid_generate_com'
- ctools_uuid_generate in ./
ctools.module - Wrapper function to create UUIDs via ctools, falls back on UUID module if it is enabled. This code is a copy of uuid.inc from the uuid module.
File
- includes/
uuid.inc, line 21 - Enables ctools generated modules to use UUIDs without the UUID module enabled. Per the ctools.module, this file only gets included if UUID doesn't exist.
Code
function _ctools_uuid_generate_com() {
// Remove {} wrapper and make lower case to keep result consistent.
return drupal_strtolower(trim(com_create_guid(), '{}'));
}