function _messaging_devel_format_log in Messaging 7
Format complex log as collapsible fieldset
File
- messaging_devel/
messaging_devel.module, line 272 - Simple messaging using html page. Messaging method plug-in
Code
function _messaging_devel_format_log($type, $string, $append, $objects) {
$content = '';
foreach ($objects as $key => $value) {
$content .= _messaging_devel_format_object($value, $key);
}
// Build collapsible fieldset
$field['object'] = array(
'#type' => 'fieldset',
'#title' => $string,
'#collapsible' => TRUE,
'#collapsed' => TRUE,
'#description' => $append ? implode(' ', $append) : '',
);
$field['object']['content']['#value'] = $content;
return drupal_render($field);
}