function theme_messaging_template_text in Messaging 7
Theme messaging text
1 theme call to theme_messaging_template_text()
- messaging_template_element_info in messaging_template/
messaging_template.module - Implements hook_element_info()
File
- messaging_template/
messaging_template.inc, line 502 - Drupal Messaging Framework - Text filtering functions
Code
function theme_messaging_template_text($variables) {
$element = $variables['element'];
$text = array();
if (!empty($element['#title'])) {
$text[] = $element['#title'];
}
if (!empty($element['#markup'])) {
$text[] = $element['#markup'];
}
foreach (element_children($element) as $key) {
$text[] = is_array($element[$key]) ? drupal_render($element[$key]) : $element[$key];
}
return implode($element['#linebreak'], $text);
}