Permalink
Browse files

MDL-34274 book: adding restore log rules for the new actions

  • Loading branch information...
1 parent d3bf90a commit 0f357885b2f3f6ac210f87593cc6538db65c2447 @ankitagarwal ankitagarwal committed Oct 11, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 mod/book/backup/moodle2/restore_book_activity_task.class.php
@@ -111,6 +111,10 @@ static public function define_restore_log_rules() {
// To convert old 'generateimscp' log entries
$rules[] = new restore_log_rule('book', 'generateimscp', 'tool/generateimscp/index.php?id={course_module}', '{book}',
'book', 'exportimscp', 'tool/exportimscp/index.php?id={course_module}', '{book}');
+ $rules[] = new restore_log_rule('book', 'print chapter', 'tool/print/index.php?id={course_module}&chapterid={book_chapter}', '{book_chapter}');
+ $rules[] = new restore_log_rule('book', 'update chapter', 'view.php?id={course_module}&chapterid={book_chapter}', '{book_chapter}');
+ $rules[] = new restore_log_rule('book', 'add chapter', 'view.php?id={course_module}&chapterid={book_chapter}', '{book_chapter}');
+ $rules[] = new restore_log_rule('book', 'view chapter', 'view.php?id={course_module}&chapterid={book_chapter}', '{book_chapter}');
return $rules;
}

0 comments on commit 0f35788

Please sign in to comment.