mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 04:22:07 +02:00
Merge branch 'MDL-39066-master' of git://github.com/ankitagarwal/moodle
This commit is contained in:
commit
e377d86765
@ -37,11 +37,13 @@ class blog_edit_external_form extends moodleform {
|
||||
|
||||
$mform =& $this->_form;
|
||||
|
||||
$mform->addElement('text', 'url', get_string('url', 'blog'), array('size' => 50));
|
||||
$mform->addElement('url', 'url', get_string('url', 'blog'), array('size' => 50));
|
||||
$mform->setType('url', PARAM_URL);
|
||||
$mform->addRule('url', get_string('emptyurl', 'blog'), 'required', null, 'client');
|
||||
$mform->addHelpButton('url', 'url', 'blog');
|
||||
|
||||
$mform->addElement('text', 'name', get_string('name', 'blog'));
|
||||
$mform->setType('name', PARAM_TEXT);
|
||||
$mform->addHelpButton('name', 'name', 'blog');
|
||||
|
||||
$mform->addElement('textarea', 'description', get_string('description', 'blog'), array('cols' => 50, 'rows' => 7));
|
||||
@ -49,8 +51,10 @@ class blog_edit_external_form extends moodleform {
|
||||
|
||||
if (!empty($CFG->usetags)) {
|
||||
$mform->addElement('text', 'filtertags', get_string('filtertags', 'blog'), array('size' => 50));
|
||||
$mform->setType('filtertags', PARAM_TAGLIST);
|
||||
$mform->addHelpButton('filtertags', 'filtertags', 'blog');
|
||||
$mform->addElement('text', 'autotags', get_string('autotags', 'blog'), array('size' => 50));
|
||||
$mform->setType('autotags', PARAM_TAGLIST);
|
||||
$mform->addHelpButton('autotags', 'autotags', 'blog');
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user