You are here

function elysia_cron_get_job_weight in Elysia Cron 7.2

Same name and namespace in other branches
  1. 5.2 elysia_cron.module \elysia_cron_get_job_weight()
  2. 5 elysia_cron.module \elysia_cron_get_job_weight()
  3. 6.2 elysia_cron.module \elysia_cron_get_job_weight()
  4. 6 elysia_cron.module \elysia_cron_get_job_weight()
  5. 7 elysia_cron.module \elysia_cron_get_job_weight()

Get weight of specified job.

Parameters

string $job: Job name.

string $default: Default weight.

bool $refresh: If TRUE - fresh status will be get from database.

Return value

string Job weight or empty string.

2 calls to elysia_cron_get_job_weight()
elysia_cron_initialize in ./elysia_cron.module
elysia_cron_settings_form in ./elysia_cron.admin.inc
Form builder for general settings form.

File

./elysia_cron.module, line 730

Code

function elysia_cron_get_job_weight($job, $default = '', $refresh = FALSE) {

  // May be overridden by a static conf.
  if (isset($GLOBALS['conf'][$n = 'ec_' . _ec_get_name($job) . '_w'])) {
    return $GLOBALS['conf'][$n];
  }
  return elysia_cron_get($job, FALSE, 'weight', $default, $refresh);
}