StructsΒ§
- Content
Rewrite π - Points references inside copied block content at the copy.
FunctionsΒ§
- changed_
rows π - The ids and rewritten values of the rows whose value
rewritechanges. - copy_
certificate_ πconfigurations_ and_ requirements - copy_
chatbot_ πconfigurations - Returns the ids of the copied configurations.
- copy_
cheater_ πthresholds - copy_
code_ πgiveaways - Copies the giveaways without their codes and returns the copiesβ ids. Must run after the modules and the research consent questions are copied.
- copy_
course - copy_
course_ πchapters - After this one
set_chapter_front_pagesneeds to be called to get these to point to the correct front pages. - copy_
course_ πcustom_ privacy_ policy_ checkbox_ texts - copy_
course_ πexercises - Copies the exercises of the copied pages and returns the copiesβ ids.
- copy_
course_ πmodules - Returns the ids of the copied modules.
- copy_
course_ πpages_ and_ return_ contents - Skips pages of deleted chapters: chapter deletion once left the pages in place.
- copy_
course_ with_ language_ group - copy_
email_ πtemplates - copy_
exam - copy_
exam_ πcontent - copy_
exam_ πexercises - Copies the exercises of the copied exam pages and returns the copiesβ ids.
- copy_
exam_ πpages_ and_ return_ contents - copy_
exercise_ πrepositories - copy_
exercise_ πslides - copy_
exercise_ πtasks - copy_
glossary_ πentries - copy_
material_ πreferences - copy_
page_ πaudio_ files - The copies share the stored audio files with the source pages.
- copy_
partners_ πblocks - copy_
peer_ πor_ self_ review_ configs - copy_
peer_ πor_ self_ review_ questions - copy_
privacy_ πlinks - copy_
research_ πconsent_ forms_ and_ questions - Returns the ids of the copied questions. The form content still names the source questions
until it goes through
ContentRewrite. - copy_
user_ permissions - insert_
page_ πhistory_ for_ copies - Records each copied pageβs final state as its first history entry, as saving it in the CMS would. The chatbot syncer only indexes pages that have one.
- rewrite_
course_ πlinks - Rewrites
/courses/<source_slug>link targets invalue: wholeurl/hrefattributes, andhrefvalues inside HTML strings. Visible text is left alone. - rewrite_
course_ πpath - rewrite_
course_ πtexts - Applies
content_rewriteto the copied courseβs block content and links outside pages. - rewrite_
html_ πhrefs - rewrite_
page_ πcontents - set_
chapter_ πfront_ pages - A chapter whose front page was not copied is left without one.