You are here

function print_error in Quiz 6.6

Same name and namespace in other branches
  1. 6.5 includes/moodle_support.php \print_error()
5 calls to print_error()
qformat_default::exportprocess in includes/moodle/question/format.php
Do the export For most types this should not need to be overrided
question_context_has_any_questions in includes/moodle/lib/questionlib.php
Determine whether there arey any questions belonging to this context, that is whether any of its question categories contain any questions. This will return true even if all the questions are hidden.
question_has_capability_on in includes/moodle/lib/questionlib.php
Check capability on category
question_require_capability_on in includes/moodle/lib/questionlib.php
Require capability on question.
_questions_export_moodle in includes/questions_export/questions_export.admin.inc
Exports questions using the Moodle export engine.

File

includes/moodle_support.php, line 380

Code

function print_error($errorcode, $module = 'error', $link = '', $a = NULL, $extralocations = NULL) {

  // use Drupal's stuff, good enough
  $message = get_string($errorcode, $module, $a, $extralocations);
  print "<h1>{$message}</h1>";
  drupal_set_message("{$errorcode} {$a}", $type = 'error', $repeat = TRUE);
}