You are here

function _dcr_render_array in Elysia Cron 6.2

Same name and namespace in other branches
  1. 6 elysia_drupalconv.php \_dcr_render_array()
  2. 7 elysia_drupalconv.php \_dcr_render_array()
3 calls to _dcr_render_array()
elysia_cron_admin_page in ./elysia_cron.admin.inc
elysia_cron_maintenance_page in ./elysia_cron.admin.inc
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_drupalconv.php, line 36

Code

function _dcr_render_array($output) {
  foreach ($output as $k => &$v) {
    if ((is_numeric($k) || $k[0] != '#') && is_string($v)) {
      $v = array(
        '#type' => 'markup',
        '#value' => $v,
        '#weight' => -1,
      );
    }
  }
  _dcf_convert_render_array($output);
  return drupal_render($output);
}