~ubuntu-branches/ubuntu/jaunty/moodle/jaunty

« back to all changes in this revision

Viewing changes to mod/assignment/mod_form.php

  • Committer: Bazaar Package Importer
  • Author(s): Jordan Mantha, Matt Oquist
  • Date: 2009-02-25 15:16:22 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20090225151622-0ekt1liwhv2obfza
Tags: 1.9.4.dfsg-0ubuntu1
* Merge with Debian git (Closes LP: #322961, #239481, #334611):
  - use Ubuntu's smarty lib directory for linking
  - use internal yui library 
  - add update-notifier support back in

[Matt Oquist]
  * renamed prerm script
  * significantly rewrote postinst and other maintainer scripts to improve
    user experience and package maintainability
    (Closes LP: #225662, #325450, #327843, #303078, #234609)

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
//        $mform->addElement('static', 'statictype', get_string('assignmenttype', 'assignment'), get_string('type'.$type,'assignment'));
33
33
 
34
34
        $mform->addElement('text', 'name', get_string('assignmentname', 'assignment'), array('size'=>'64'));
35
 
        $mform->setType('name', PARAM_TEXT);
 
35
        if (!empty($CFG->formatstringstriptags)) {
 
36
            $mform->setType('name', PARAM_TEXT);
 
37
        } else {
 
38
            $mform->setType('name', PARAM_CLEAN);
 
39
        }
36
40
        $mform->addRule('name', null, 'required', null, 'client');
37
41
 
38
42
        $mform->addElement('htmleditor', 'description', get_string('description', 'assignment'));
56
60
        $mform->addElement('header', 'typedesc', get_string('type'.$type,'assignment'));
57
61
        $assignmentinstance->setup_elements($mform);
58
62
 
59
 
        $this->standard_coursemodule_elements();
 
63
        $features = new stdClass;
 
64
        $features->groups = true;
 
65
        $features->groupings = true;
 
66
        $features->groupmembersonly = true;
 
67
        $this->standard_coursemodule_elements($features);
60
68
 
61
69
        $this->add_action_buttons();
62
70
    }