mod_survey
Check if a user is authorized to perform an operation on a an object (some resource or module). Observe this notification to do complex or more fine-grained…
Used in the admin to fetch the possible blocks for display
mod_export - fetch a row for the export, can return a list of rows, a binary, and optionally a continuation state. Where Values is [ term() ], i.e. a list of…
mod_export - return the {ok, Filename} for the content disposition.
mod_export - Fetch the header for the export.
Check if a question (page block) is a submitting question.
Map to signal merging two resources. Move any information from the loser to the winner. The loser will be deleted.
Used in the admin to process a submitted resource form
Model for survey reporting and participant state, including results, totals, per-user answers, exports, and result handlers.
Model for saving and retrieving intermediate survey answers for users. There can only be a single intermediate result per user/survey or, for anonymous users…
URL dispatch rules defined by mod_survey in apps/zotonic_mod_survey/priv/dispatch/survey.
Filter to split multi-value survey answers on the '#' character.
Determine if any answer of a question was correct. Used for showing results of thurstone test questions.
Determine if any answer of a question was wrong. Used for showing results of thurstone test questions.
Split the page blocks into pages, prepare them for easy display in the survey question editor.
Test whether a survey respondent may return to the previous page in a history.
Check if a list of questions contains a pagebreak block with an unconditional submit.
Check if the given survey is configured to save intermediate results. Always returns a boolean value.
Check if there is a ‘stop’ question in list of (survey) blocks
Check if the questions end with a question type that is a submit button.
Check the list of blocks and collect all options for that page.
Prepare the items and options of a survey matching question for rendering.
Parse a survey narrative question into renderable text and input parts.
Normalize a survey Thurstone question before rendering or processing it.
Used by the survey module to add extra column values to the result editor.
Counts the total of all points that can be received for all test questions. Non test questions are not counted.
Show a given survey (with the id parameter) as a “poll”. This presents a simpler interface, in which the user is directly asked to enter some information, e.g.
Show the first page for a given survey (with the id parameter):
Split the page blocks into pages, prepare them for easy display in the survey question editor.
Check if there is a ‘stop’ question in list of (survey) blocks
Counts the total of all points that can be received for all test questions. Non test questions are not counted.