function _ctools_uuid_generate_pecl in Chaos Tool Suite (ctools) 7
Generates an universally unique identifier using the PECL extension.
1 string reference to '_ctools_uuid_generate_pecl'
- 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 29 - 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_pecl() {
$uuid_type = UUID_TYPE_DEFAULT;
return uuid_create($uuid_type);
}