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