~ubuntu-branches/ubuntu/natty/moodle/natty

« back to all changes in this revision

Viewing changes to user/profile/index_field_form.php

  • Committer: Bazaar Package Importer
  • Author(s): Tomasz Muras
  • Date: 2010-10-30 12:19:28 UTC
  • mfrom: (1.1.12 upstream) (3.1.10 squeeze)
  • Revision ID: james.westby@ubuntu.com-20101030121928-qzobi6mctpnk4dif
Tags: 1.9.9.dfsg2-2
* Added Romanian translation
* Updated Japanese translation (closes: #596820)
* Backporting security fixes from Moodle 1.9.10 (closes: #601384)
   - Updated embedded CAS to 1.1.3
   - Added patch for MDL-24523:
     clean_text() not filtering text in markdown format
   - Added patch for MDL-24810 and upgraded customized HTML Purifier to 4.2.0 
   - Added patch for MDL-24258:
     students can delete their forum posts later than $CFG->maxeditingtime 
     under certain conditions
   - Added patch for MDL-23377:
     Can't delete quiz attempts in course without enrolled students

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?php //$Id: index_field_form.php,v 1.4.4.2 2008/04/25 12:20:02 skodak Exp $
 
1
<?php //$Id: index_field_form.php,v 1.4.4.3 2009/09/26 16:28:24 skodak Exp $
2
2
 
3
3
require_once($CFG->dirroot.'/lib/formslib.php');
4
4
 
22
22
 
23
23
        /// Add some extra hidden fields
24
24
        $mform->addElement('hidden', 'id');
 
25
        $mform->setType('id', PARAM_INT);
25
26
        $mform->addElement('hidden', 'action', 'editfield');
 
27
        $mform->setType('action', PARAM_ACTION);
26
28
        $mform->addElement('hidden', 'datatype', $datatype);
 
29
        $mform->setType('datatype', PARAM_ALPHA);
27
30
 
28
31
        $this->field->define_form($mform);
29
32