You are here

function notify in Quiz 6.6

Same name and namespace in other branches
  1. 6.5 includes/moodle_support.php \notify()
10 calls to notify()
qformat_coursetestmanager::importprocess in includes/moodle/question/format/coursetestmanager/format.php
Process the file This method should not normally be overidden
qformat_default::exportprocess in includes/moodle/question/format.php
Do the export For most types this should not need to be overrided
qformat_default::importprocess in includes/moodle/question/format.php
Process the file This method should not normally be overidden
qformat_gift::writequestion in includes/moodle/question/format/gift/format.php
convert a single question object into text output in the given format. This must be overriden
qformat_qti2::exportprocess in includes/moodle/question/format/qti2/format.php
exports the questions in a question category to the given location

... See full list

File

includes/moodle_support.php, line 298

Code

function notify($message, $style = 'notifyproblem', $align = 'center', $return = false) {
  if ($style == 'green') {
    $style = 'notifysuccess';

    // backward compatible with old color system
  }
  $message = clean_text($message);
  $output = '<div class="' . $style . '" style="text-align:' . $align . '">' . $message . '</div>' . "\n";
  if ($return) {
    return $output;
  }
  echo $output;
}