|
|
|
@ -23,17 +23,18 @@ $form = new FormValidator('form'); |
|
|
|
|
$form->addElement('select', 'language', get_lang('Language'), api_get_languages_to_array()); |
|
|
|
|
|
|
|
|
|
$form->addElement('header', 'Option 1'); |
|
|
|
|
$form->addElement('textarea', 'option1', get_lang('Description')); |
|
|
|
|
$form->addElement('textarea', 'option1', get_lang('Description'), array('rows' => 10, 'class' => 'span6')); |
|
|
|
|
$form->addElement('text', 'option1_url', get_lang('RedirectTo')); |
|
|
|
|
|
|
|
|
|
$form->addElement('header', 'Option 2'); |
|
|
|
|
$form->addElement('textarea', 'option2', get_lang('Description')); |
|
|
|
|
$form->addElement('textarea', 'option2', get_lang('Description'), array('rows' => 10, 'class' => 'span6')); |
|
|
|
|
$form->addElement('text', 'option2_url', get_lang('RedirectTo')); |
|
|
|
|
$form->addElement('button', 'submit_button', get_lang('Save')); |
|
|
|
|
|
|
|
|
|
// Get default value for form |
|
|
|
|
|
|
|
|
|
$defaults = array(); |
|
|
|
|
$defaults['language'] = api_get_plugin_setting('before_login', 'language'); |
|
|
|
|
$defaults['option1'] = api_get_plugin_setting('before_login', 'option1'); |
|
|
|
|
$defaults['option2'] = api_get_plugin_setting('before_login', 'option2'); |
|
|
|
|
|
|
|
|
|