Commit 47712898 authored by Nigel McNie's avatar Nigel McNie
Browse files

Allow the contextualhelp smarty function to pass through more information, so...

Allow the contextualhelp smarty function to pass through more information, so different help items can be accessed in certain places
parent d403e110
......@@ -20,10 +20,11 @@
* @return HTML snippet for help icon
*/
function smarty_function_contextualhelp($params, &$smarty) {
$form = (isset($params['form'])) ? $params['form'] : null;
$element = (isset($params['element'])) ? $params['element'] : null;
$ret = call_user_func_array('get_help_icon', array(
$params['plugintype'], $params['pluginname'], null, null, null, $params['section']));
$params['plugintype'], $params['pluginname'], $form, $element, null, $params['section']));
// If there is an 'assign' parameter, place it into that instead.
if (!empty($params['assign'])) {
......
Supports Markdown
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