Skip to content

Instantly share code, notes, and snippets.

@jec006
Created August 24, 2012 19:36
Show Gist options
  • Save jec006/3454818 to your computer and use it in GitHub Desktop.
Save jec006/3454818 to your computer and use it in GitHub Desktop.
<?php
$render = array();
//Good
$render['top'] = array(
'#type' => 'items_list',
'#items' => array(
array('#data' => 'lololol'),
),
);
$render['bottom'] = array(
'#type' => 'custom_render',
'#something' => 'some data',
);
//Bad
$render = array(
'#type' => 'items_list',
'#items' => array(
array('#data' => 'lololol'),
),
);
$bottom = array(
'#type' => 'custom_render',
'#something' => 'some data',
);
$render['#suffix'] = render($bottom);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment