function _dcf_convert_render_array in Elysia Cron 6
Same name and namespace in other branches
- 6.2 elysia_drupalconv.php \_dcf_convert_render_array()
2 calls to _dcf_convert_render_array()
File
- ./
elysia_drupalconv.php, line 24
Code
function _dcf_convert_render_array(&$a) {
if (!empty($a['#markup'])) {
$a['#value'] = $a['#markup'];
unset($a['#markup']);
}
if (!empty($a['#type']) && $a['#type'] == 'actions') {
unset($a['#type']);
}
foreach ($a as $k => &$v) {
if (is_array($v)) {
_dcf_convert_render_array($v);
}
}
}