Skip to content

Commit

Permalink
MDL-44370 calendar: Add support for restoring calendar log rules
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitagarwal committed Mar 4, 2014
1 parent e662454 commit cebfb9e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion backup/moodle2/restore_final_task.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,12 @@ static public function define_restore_log_rules() {
// rules from other tasks (activities) not belonging to one module instance (cmid = 0), so are restored here
$rules = array_merge($rules, restore_logs_processor::register_log_rules_for_course());

// TODO: Other logs like 'calendar', 'upload'... will go here
// Calendar rules.
$rules[] = new restore_log_rule('calendar', 'add', 'event.php?action=edit&id={event}', '[name]');
$rules[] = new restore_log_rule('calendar', 'edit', 'event.php?action=edit&id={event}', '[name]');
$rules[] = new restore_log_rule('calendar', 'edit all', 'event.php?action=edit&id={event}', '[name]');

// TODO: Other logs like 'upload'... will go here

return $rules;
}
Expand Down

0 comments on commit cebfb9e

Please sign in to comment.