Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-39066 blogs: Add missing setType calls in blogs

  • Loading branch information...
commit a915104b4d615412a97b83bb2ca94fc139f11080 1 parent b3661ab
Ankit Agarwal ankitagarwal authored

Showing 1 changed file with 5 additions and 1 deletion. Show diff stats Hide diff stats

  1. +5 1 blog/external_blog_edit_form.php
6 blog/external_blog_edit_form.php
@@ -37,11 +37,13 @@ public function definition() {
37 37
38 38 $mform =& $this->_form;
39 39
40   - $mform->addElement('text', 'url', get_string('url', 'blog'), array('size' => 50));
  40 + $mform->addElement('url', 'url', get_string('url', 'blog'), array('size' => 50));
  41 + $mform->setType('url', PARAM_URL);
41 42 $mform->addRule('url', get_string('emptyurl', 'blog'), 'required', null, 'client');
42 43 $mform->addHelpButton('url', 'url', 'blog');
43 44
44 45 $mform->addElement('text', 'name', get_string('name', 'blog'));
  46 + $mform->setType('name', PARAM_TEXT);
45 47 $mform->addHelpButton('name', 'name', 'blog');
46 48
47 49 $mform->addElement('textarea', 'description', get_string('description', 'blog'), array('cols' => 50, 'rows' => 7));
@@ -49,8 +51,10 @@ public function definition() {
49 51
50 52 if (!empty($CFG->usetags)) {
51 53 $mform->addElement('text', 'filtertags', get_string('filtertags', 'blog'), array('size' => 50));
  54 + $mform->setType('filtertags', PARAM_TAGLIST);
52 55 $mform->addHelpButton('filtertags', 'filtertags', 'blog');
53 56 $mform->addElement('text', 'autotags', get_string('autotags', 'blog'), array('size' => 50));
  57 + $mform->setType('autotags', PARAM_TAGLIST);
54 58 $mform->addHelpButton('autotags', 'autotags', 'blog');
55 59 }
56 60

0 comments on commit a915104

Please sign in to comment.
Something went wrong with that request. Please try again.