function elysia_cron_ctools_export_load in Elysia Cron 6.2
Same name and namespace in other branches
- 6 elysia_cron.ctools.inc \elysia_cron_ctools_export_load()
- 7.2 elysia_cron.ctools.inc \elysia_cron_ctools_export_load()
- 7 elysia_cron.ctools.inc \elysia_cron_ctools_export_load()
Ctools load callback Ctools does not support override of PARTIAL record, this is an elysia cron specific replacement to support it
1 string reference to 'elysia_cron_ctools_export_load'
File
- ./
elysia_cron.ctools.inc, line 24
Code
function elysia_cron_ctools_export_load($name) {
$schema = ctools_export_get_schema('elysia_cron');
if (!empty($schema)) {
$export = $schema['export'];
if (EC_DRUPAL_VERSION >= 7) {
$object = db_query("select " . implode(", ", $GLOBALS['_ec_columns']) . " from {elysia_cron} where name = :name", array(
':name' => $name,
))
->fetch();
}
else {
$object = db_fetch_object(db_query("select " . implode(", ", $GLOBALS['_ec_columns']) . " from {elysia_cron} where name = '%s'", $name));
}
$default_objects = _ctools_export_get_defaults('elysia_cron', $export);
if ($object) {
if (isset($default_objects[$name])) {
return _elysia_cron_ctools_export_load_object_db_and_code($object, $default_objects[$name], $export);
}
else {
return _elysia_cron_ctools_export_load_object_db($object, $export);
}
}
elseif (isset($default_objects[$name])) {
return _elysia_cron_ctools_export_load_object_code($default_objects[$name], $export);
}
}
}