Project

General

Profile

« Previous | Next » 

Revision 961319fe

Added by Andreas Kohlbecker over 4 years ago

ref #8406 clenaing and harmonization of the specimen related code in the dataportal

View differences:

modules/cdm_dataportal/cdm_api/cdm_node.php
232 232
 */
233 233
function cdm_node_show_simulate($content)
234 234
{
235
  array_unshift($content, array("general-part" => markup_to_render_array("<div id=\"general\" class=\"page-part\"></div>")));
236
  return drupal_render($content);
235
  $general_div = "<div id=\"general\" class=\"page-part\"></div>";
236
  if(is_array($content)){
237
    array_unshift($content, array("general-part" => markup_to_render_array($general_div)));
238
    return drupal_render($content);
239
  } else {
240
    return $general_div . $content;
241
  }
237 242
}
238 243

  
239 244

  

Also available in: Unified diff