Added indent left and indent right for resources

This commit is contained in:
vyshane
2006-11-22 07:35:53 +00:00
parent 4378a0456e
commit f868caa529
+12
View File
@@ -99,6 +99,18 @@ switch($_SERVER['REQUEST_METHOD']) {
set_coursemodule_groupmode($mod->id, $value);
break;
case 'indentleft':
if ($mod->indent > 0) {
$mod->indent--;
update_record('course_modules', $mod);
}
break;
case 'indentright':
$mod->indent++;
update_record('course_modules', $mod);
break;
case 'move':
if (!$section = get_record('course_sections','course',$course->id,'section',$sectionid)) {
error_log('AJAX commands.php: Bad section ID '.$sectionid);