Commit ca991261 authored by Robert Lyon's avatar Robert Lyon
Browse files

Allow the instconf form element to also use the ANY wildcard help file

Bug #1308479

Allow the same license, licensor, licensorurl help files to be accessible
in block instance config form for both the 'license' section and the
attachments 'license' section

Change-Id: I20dc64c6d4c3cf25138c46348c2d8e5bf7a8fc94
Signed-off-by: Robert Lyon's avatarRobert Lyon <>
parent 4a6903f7
......@@ -414,6 +414,11 @@ function get_helpfile_location($plugintype, $pluginname, $form, $element, $page=
// if it's a form element, try the wildcard form name
if (!empty($form) && !empty($element) && $form !== 'ANY') {
// if it's a block instance config form element, try the wildcard form name
// and element without it's prefixes
if (preg_match('/^instconf_/', $element)) {
$element = end(explode('_', $element));
return get_helpfile_location('core', '', 'ANY', $element, $page, $section);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment