1 theme.inc theme_help($variables)

Returns HTML for a help element.

Related topics

File

core/includes/theme.inc, line 2502
The theme system, which controls the output of Backdrop.

Code

function theme_help($variables) {
  // Wrap in a paragraph tag if one is not present.
  if (strpos($variables['markup'], '<p') === FALSE) {
    $variables['markup'] = '<p>' . $variables['markup'] . '</p>';
  }
  return '<div class="help">' . $variables['markup'] . '</div>';
}