function _ec_variable_get in Elysia Cron 5.2
Same name and namespace in other branches
- 5 elysia_cron.module \_ec_variable_get()
- 6.2 elysia_cron.module \_ec_variable_get()
- 6 elysia_cron.module \_ec_variable_get()
- 7.2 elysia_cron.module \_ec_variable_get()
- 7 elysia_cron.module \_ec_variable_get()
A substitute for variable_get to avoid cache management Use ONLY for variables setted during cron execution: elysia_cron_semaphore, elysia_cron_last_run, elysia_cron_last_context, cron_semaphore, cron_last WARN_UPGRADE
4 calls to _ec_variable_get()
- elysia_cron_admin_page in ./
elysia_cron.admin.inc - elysia_cron_check_version_update in ./
elysia_cron_update.php - elysia_cron_last_channel in ./
elysia_cron.module - elysia_cron_ping_page in ./
elysia_cron.module - Page callback for ping page. Throws 404 if cron hasn't been called within configured time period.
File
- ./
elysia_cron.module, line 226
Code
function _ec_variable_get($name, $default) {
global $_ec_variables, $_ec_variables_allowed;
if (!in_array($name, $_ec_variables_allowed)) {
_dco_watchdog('cron', 'Wrong variable passed to _ec_variable_get: !var', array(
'!var' => $name,
), WATCHDOG_ERROR);
return variable_get($name, $default);
}
if (!is_array($_ec_variables)) {
_ec_variable_init();
}
// If there is a $GLOBALS['original_conf'] = $conf; at the end of settings.php i consider it.
global $original_conf;
if (isset($original_conf[$name])) {
return $original_conf[$name];
}
if (isset($_ec_variables[$name])) {
return $_ec_variables[$name];
}
return $default;
}