You are here

function error in Quiz 6.6

Same name and namespace in other branches
  1. 6.5 includes/moodle_support.php \error()
17 calls to error()
get_filesdir_from_context in includes/moodle/lib/questionlib.php
get_question_image in includes/moodle/lib/questionlib.php
Returns a html link to the question image if there is one
qformat_blackboard_6::readdata in includes/moodle/question/format/blackboard_6/format.php
Return complete file within an array, one item per line
qformat_coursetestmanager::importprocess in includes/moodle/question/format/coursetestmanager/format.php
Process the file This method should not normally be overidden
qformat_default::create_category_path in includes/moodle/question/format.php
find and/or create the category described by a delimited list e.g. $course$/tom/dick/harry or tom/dick/harry

... See full list

17 string references to 'error'
long_answer_score_form_submit in question_types/long_answer/long_answer.admin.inc
match_grade_options in includes/moodle/lib/questionlib.php
match grade options if no match return error or match nearest
PclZip::privExtractFile in includes/moodle/lib/pclzip/pclzip.lib.php
print_error in includes/moodle_support.php
questions_import_submit_aiken in includes/questions_import/questions_import.admin.inc
@function This function imports questions from Moodle Aiken format file.

... See full list

File

includes/moodle_support.php, line 220

Code

function error($message) {
  echo '<div style="text-align: center; font-weight: bold; color: red;">';
  echo '<span style="color: black;">editorObject error:</span> ';
  echo s($message, true);
  echo '</div>';
  exit;
}