function _dcr_hook_theme in Elysia Cron 6
Same name and namespace in other branches
- 6.2 elysia_drupalconv.php \_dcr_hook_theme()
- 7 elysia_drupalconv.php \_dcr_hook_theme()
1 call to _dcr_hook_theme()
- elysia_cron_theme in ./
elysia_cron.module - Implementation of hook_theme(). [Only D6+D7]
File
- ./
elysia_drupalconv.php, line 80
Code
function _dcr_hook_theme($specs) {
foreach ($specs as $k => $v) {
if (!empty($v['variables'])) {
$v['arguments'] = $v['variables'];
unset($v['variables']);
}
if (!empty($v['render element'])) {
$v['arguments'] = array(
$v['render element'] => NULL,
);
unset($v['render element']);
}
}
return $specs;
}