Commit 7eae3335 authored by Cecilia Vela Gurovic's avatar Cecilia Vela Gurovic Committed by Gerrit Code Review

Merge "Bug 1747730: Allow one to add custom css to plugin extention config page"

parents 873bfc73 4b3008fb
......@@ -50,6 +50,13 @@ if (!call_static_method($classname, 'has_config')) {
}
$form = call_static_method($classname, 'get_config_options');
if (method_exists($classname, 'get_config_options_css')) {
$formcss = call_static_method($classname, 'get_config_options_css');
}
else {
$formcss = array();
}
if (!array_key_exists('class', $form)) {
$form['class'] = 'panel panel-body';
}
......@@ -80,7 +87,7 @@ $form['elements']['save'] = array(
$form = pieform($form);
$smarty = smarty();
$smarty = smarty(array(), $formcss);
$smarty->assign('form', $form);
$smarty->assign('plugintype', $plugintype);
$smarty->assign('pluginname', $pluginname);
......
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