You are here

function _dcf_convert_render_array in Elysia Cron 6

Same name and namespace in other branches
  1. 6.2 elysia_drupalconv.php \_dcf_convert_render_array()
2 calls to _dcf_convert_render_array()
_dcr_form in ./elysia_drupalconv.php
_dcr_render_array in ./elysia_drupalconv.php

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);
    }
  }
}