MDL-48389 forms: added page title to help text

This commit is contained in:
Brian Barnes 2014-11-27 13:42:06 +13:00
parent dbe2143aba
commit e80a960d35

View file

@ -42,6 +42,11 @@ $PAGE->set_pagelayout('popup');
$PAGE->set_context(context_system::instance());
$data = get_formatted_help_string($identifier, $component, false);
if (!empty($data->heading)) {
$PAGE->set_title($data->heading);
} else {
$PAGE->set_title(get_string('help'));
}
echo $OUTPUT->header();
if (!empty($data->heading)) {
echo $OUTPUT->heading($data->heading, 1, 'helpheading');