You are here

function _ec_get_name in Elysia Cron 7.2

Same name and namespace in other branches
  1. 5.2 elysia_cron.module \_ec_get_name()
  2. 5 elysia_cron.module \_ec_get_name()
  3. 6.2 elysia_cron.module \_ec_get_name()
  4. 6 elysia_cron.module \_ec_get_name()
  5. 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);
}