id); /// Set up some general variables $usehtmleditor = can_use_html_editor(); /// Process the action switch ($action) { case 'addbranchtable': case 'addpage': case 'confirmdelete': case 'editpage': case 'move': lesson_print_header($cm, $course, $lesson); case 'addcluster': case 'addendofbranch': case 'addendofcluster': case 'delete': case 'insertpage': case 'updatepage': case 'moveit': require_capability('mod/lesson:edit', $context); case 'continue': include($CFG->dirroot.'/mod/lesson/action/'.$action.'.php'); break; default: error("Fatal Error: Unknown action\n"); } print_footer($course); ?>