Skip to content

Commit

Permalink
MDL-19798 Upgraded calls to helpbutton, print_simple_box* and notify
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasconnault committed Aug 18, 2009
1 parent c3b834b commit a1c54f7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion group/autogroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@
echo $OUTPUT->heading($strautocreategroups);

if ($error != '') {
notify($error);
echo $OUTPUT->notification($error);
}

/// Display the form
Expand Down
16 changes: 8 additions & 8 deletions group/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ function groups_delete_grouping($groupingorid) {
* @return bool success
*/
function groups_delete_group_members($courseid, $userid=0, $showfeedback=false) {
global $DB;
global $DB, $OUTPUT;

if (is_bool($userid)) {
debugging('Incorrect userid function parameter');
Expand All @@ -298,7 +298,7 @@ function groups_delete_group_members($courseid, $userid=0, $showfeedback=false)
events_trigger('groups_members_removed', $eventdata);

if ($showfeedback) {
notify(get_string('deleted').' groups_members');
echo $OUTPUT->notification(get_string('deleted').' groups_members');
}

return true;
Expand All @@ -311,7 +311,7 @@ function groups_delete_group_members($courseid, $userid=0, $showfeedback=false)
* @return bool success
*/
function groups_delete_groupings_groups($courseid, $showfeedback=false) {
global $DB;
global $DB, $OUTPUT;

$groupssql = "SELECT id FROM {groups} g WHERE g.courseid = ?";
$DB->delete_records_select('groupings_groups', "groupid IN ($groupssql)", array($courseid));
Expand All @@ -320,7 +320,7 @@ function groups_delete_groupings_groups($courseid, $showfeedback=false) {
events_trigger('groups_groupings_groups_removed', $courseid);

if ($showfeedback) {
notify(get_string('deleted').' groupings_groups');
echo $OUTPUT->notification(get_string('deleted').' groupings_groups');
}

return true;
Expand All @@ -333,7 +333,7 @@ function groups_delete_groupings_groups($courseid, $showfeedback=false) {
* @return bool success
*/
function groups_delete_groups($courseid, $showfeedback=false) {
global $CFG, $DB;
global $CFG, $DB, $OUTPUT;
require_once($CFG->libdir.'/gdlib.php');

// delete any uses of groups
Expand All @@ -357,7 +357,7 @@ function groups_delete_groups($courseid, $showfeedback=false) {
events_trigger('groups_groups_deleted', $courseid);

if ($showfeedback) {
notify(get_string('deleted').' groups');
echo $OUTPUT->notification(get_string('deleted').' groups');
}

return true;
Expand All @@ -370,7 +370,7 @@ function groups_delete_groups($courseid, $showfeedback=false) {
* @return bool success
*/
function groups_delete_groupings($courseid, $showfeedback=false) {
global $DB;
global $DB, $OUTPUT;

// delete any uses of groupings
$sql = "DELETE FROM {groupings_groups}
Expand All @@ -388,7 +388,7 @@ function groups_delete_groupings($courseid, $showfeedback=false) {
events_trigger('groups_groupings_deleted', $courseid);

if ($showfeedback) {
notify(get_string('deleted').' groupings');
echo $OUTPUT->notification(get_string('deleted').' groupings');
}

return true;
Expand Down

0 comments on commit a1c54f7

Please sign in to comment.