~ubuntu-branches/ubuntu/utopic/moodle/utopic

« back to all changes in this revision

Viewing changes to group/grouping.php

  • Committer: Package Import Robot
  • Author(s): Thijs Kinkhorst
  • Date: 2014-05-12 16:10:38 UTC
  • mfrom: (36.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20140512161038-puyqf65k4e0s8ytz
Tags: 2.6.3-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
$context = context_course::instance($course->id);
67
67
require_capability('moodle/course:managegroups', $context);
68
68
 
 
69
$strgroupings = get_string('groupings', 'group');
 
70
$PAGE->set_title($strgroupings);
 
71
$PAGE->set_heading($course->fullname. ': '.$strgroupings);
 
72
$PAGE->set_pagelayout('admin');
 
73
navigation_node::override_active_url(new moodle_url('/group/index.php', array('id' => $course->id)));
 
74
 
69
75
$returnurl = $CFG->wwwroot.'/group/groupings.php?id='.$course->id;
70
76
 
71
 
 
72
77
if ($id and $delete) {
73
78
    if (!empty($grouping->idnumber) && !has_capability('moodle/course:changeidnumber', $context)) {
74
79
        print_error('groupinghasidnumber', '', '', $grouping->name);
126
131
 
127
132
}
128
133
 
129
 
$strgroupings    = get_string('groupings', 'group');
130
134
$strparticipants = get_string('participants');
131
 
 
132
135
if ($id) {
133
136
    $strheading = get_string('editgroupingsettings', 'group');
134
137
} else {
140
143
$PAGE->navbar->add($strheading);
141
144
 
142
145
/// Print header
143
 
$PAGE->set_title($strgroupings);
144
 
$PAGE->set_heading($course->fullname. ': '.$strgroupings);
145
146
echo $OUTPUT->header();
146
147
echo $OUTPUT->heading($strheading);
147
148
$editform->display();