mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
[MDL-22449]
Adding some help to wiki
This commit is contained in:
parent
d543cc3cae
commit
9e25c7b480
3 changed files with 18 additions and 2 deletions
|
@ -44,6 +44,8 @@ class mod_wiki_create_form extends moodleform {
|
|||
}
|
||||
$mform->addElement('text', 'pagetitle', get_string('newpagetitle', 'wiki'), $textoptions);
|
||||
|
||||
$mform->addElement('static', 'format', get_string('format', 'wiki'));
|
||||
$mform->addHelpButton('format', 'format', 'wiki');
|
||||
foreach ($formats as $format) {
|
||||
if ($format == $defaultformat) {
|
||||
$attr = array('checked'=>'checked');
|
||||
|
@ -52,7 +54,9 @@ class mod_wiki_create_form extends moodleform {
|
|||
} else {
|
||||
$attr = array();
|
||||
}
|
||||
|
||||
$mform->addElement('radio', 'pageformat', '', get_string('format'.$format, 'wiki'), $format, $attr);
|
||||
|
||||
}
|
||||
|
||||
//hiddens
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue