function theme_messaging_text in Messaging 7
Theme messaging text
1 theme call to theme_messaging_text()
- messaging_element_info in ./
messaging.module - Implements hook_element_info()
File
- ./
messaging.text.inc, line 131 - Basic message templates and theming
Code
function theme_messaging_text($variables) {
$element = $variables['element'];
$options = $element['#options'];
$options += array(
'linebreak' => "\n",
);
$text = array();
foreach (element_children($element) as $key) {
$text[] = is_array($element[$key]) ? drupal_render($element[$key]) : $element[$key];
}
return implode($options['linebreak'], $text);
}