Skip to content

Commit

Permalink
Merge branch 'MDL-39066-master' of git://github.com/ankitagarwal/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Apr 16, 2013
2 parents 9004d7a + a915104 commit e377d86
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion blog/external_blog_edit_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,24 @@ public function definition() {

$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));
$mform->addHelpButton('description', 'description', 'blog');

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');
}

Expand Down

0 comments on commit e377d86

Please sign in to comment.