You are here

function messaging_template_admin_description in Messaging 6.3

Build template description

1 call to messaging_template_admin_description()
messaging_template_edit_form in messaging_template/messaging_template.admin.inc
Edit message formats

File

messaging_template/messaging_template.admin.inc, line 306
Messaging Framework - Admin UI

Code

function messaging_template_admin_description($name) {
  $info = messaging_template_info($name);
  $output = '<p>';
  if (!empty($info['description'])) {
    $output .= $info['description'];
  }
  if ($fallback = messaging_template_fallback($name)) {
    $output .= ' ' . t('The fallback template from which message parts will be taken if left blank is !template', array(
      '!template' => theme('messaging_template_admin_type', $fallback),
    ));
  }
  $output .= '</p>';
  if (!empty($info['help'])) {
    $output .= '<p>' . $info['help'] . '</p>';
  }
  return $output;
}