mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
Merge branch 'MDL-39066-master' of git://github.com/ankitagarwal/moodle
This commit is contained in:
commit
e377d86765
1 changed files with 5 additions and 1 deletions
|
@ -37,11 +37,13 @@ class blog_edit_external_form extends moodleform {
|
||||||
|
|
||||||
$mform =& $this->_form;
|
$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->addRule('url', get_string('emptyurl', 'blog'), 'required', null, 'client');
|
||||||
$mform->addHelpButton('url', 'url', 'blog');
|
$mform->addHelpButton('url', 'url', 'blog');
|
||||||
|
|
||||||
$mform->addElement('text', 'name', get_string('name', 'blog'));
|
$mform->addElement('text', 'name', get_string('name', 'blog'));
|
||||||
|
$mform->setType('name', PARAM_TEXT);
|
||||||
$mform->addHelpButton('name', 'name', 'blog');
|
$mform->addHelpButton('name', 'name', 'blog');
|
||||||
|
|
||||||
$mform->addElement('textarea', 'description', get_string('description', 'blog'), array('cols' => 50, 'rows' => 7));
|
$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)) {
|
if (!empty($CFG->usetags)) {
|
||||||
$mform->addElement('text', 'filtertags', get_string('filtertags', 'blog'), array('size' => 50));
|
$mform->addElement('text', 'filtertags', get_string('filtertags', 'blog'), array('size' => 50));
|
||||||
|
$mform->setType('filtertags', PARAM_TAGLIST);
|
||||||
$mform->addHelpButton('filtertags', 'filtertags', 'blog');
|
$mform->addHelpButton('filtertags', 'filtertags', 'blog');
|
||||||
$mform->addElement('text', 'autotags', get_string('autotags', 'blog'), array('size' => 50));
|
$mform->addElement('text', 'autotags', get_string('autotags', 'blog'), array('size' => 50));
|
||||||
|
$mform->setType('autotags', PARAM_TAGLIST);
|
||||||
$mform->addHelpButton('autotags', 'autotags', 'blog');
|
$mform->addHelpButton('autotags', 'autotags', 'blog');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue