Commit 04ff27b2 authored by Aaron Wells's avatar Aaron Wells Committed by Gerrit Code Review
Browse files

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

parents e0de62d4 ca991261
......@@ -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