diff --git a/core/includes/bootstrap.inc b/core/includes/bootstrap.inc index 4957fcc..51505f5 100644 --- a/core/includes/bootstrap.inc +++ b/core/includes/bootstrap.inc @@ -1766,29 +1766,27 @@ function watchdog($type, $message, $variables = array(), $severity = WATCHDOG_NO /** * Sets a message to display to the user. * - * Messages are stored in a session variable and displayed in the "System help" - * block. + * Messages are stored in a session variable and displayed in page.tpl.php via + * the $messages theme variable. * * Example usage: * @code * drupal_set_message(t('An error occurred and processing did not complete.'), 'error'); * @endcode * - * If the function is called without arguments, it returns all set messages - * without clearing them. - * * @param string $message - * The translated message to be displayed to the user. For consistency with - * other messages, it should begin with a capital letter and end with a - * period. + * (optional) The translated message to be displayed to the user. For + * consistency with other messages, it should begin with a capital letter and + * end with a period. * @param string $type - * The message's type. Defaults to 'status'. These values are supported: + * (optional) The message's type. Defaults to 'status'. These values are + * supported: * - 'status' * - 'warning' * - 'error' * @param bool $repeat - * If this is FALSE and the message is already set, then the message won't - * be repeated. Defaults to TRUE. + * (optional) If this is FALSE and the message is already set, then the + * message won't be repeated. Defaults to TRUE. * * @return array|null * A multidimensional array with keys corresponding to the set message types.