function _ec_get_name in Elysia Cron 6.2
Same name and namespace in other branches
- 5.2 elysia_cron.module \_ec_get_name()
- 5 elysia_cron.module \_ec_get_name()
- 6 elysia_cron.module \_ec_get_name()
- 7.2 elysia_cron.module \_ec_get_name()
- 7 elysia_cron.module \_ec_get_name()
1 call to _ec_get_name()
File
- ./
elysia_cron.module, line 354
Code
function _ec_get_name($name) {
$maxlen = EC_DRUPAL_VERSION >= 6 ? 120 : 40;
if (strlen($name) < $maxlen) {
return $name;
}
$border = ($maxlen - 32) / 2;
return substr($name, 0, $border) . md5($name) . substr($name, -$border);
}