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

Add support in pieform_configure to have the theme say which form renderer it...

Add support in pieform_configure to have the theme say which form renderer it wants to use. Also enable a configuration option, 'descriptionintwocells', which makes positioning descriptions under form inputs easier.
parent 63c90389
......@@ -1099,14 +1099,17 @@ function get_random_key($length=16) {
*/
function pieform_configure() {
global $USER;
$theme = ($USER->get('theme')) ? $USER->get('theme') : 'default';
require(get_config('docroot') . 'theme/' . $theme . '/config.php');
return array(
'method' => 'post',
'action' => '',
'language' => current_language(),
'autofocus' => true,
'renderer' => 'maharatable',
'renderer' => (isset($theme->formrenderer)) ? $theme->formrenderer : 'table',
'requiredmarker' => true,
'elementclasses' => true,
'descriptionintwocells' => true,
'jsdirectory' => get_config('wwwroot') . 'lib/pieforms/static/core/',
'replycallback' => 'pieform_reply',
'jserrorcallback' => 'formError',
......
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