Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
ae98abc1
Commit
ae98abc1
authored
May 14, 2005
by
Dries
Browse files
- Patch
#22652
by Stefan: improved PHPdoc of drupal_set_message().
parent
33f4134f
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/bootstrap.inc
View file @
ae98abc1
...
...
@@ -738,12 +738,18 @@ function watchdog($type, $message, $severity = WATCHDOG_NOTICE, $link = NULL) {
}
/**
* Set a message
for the user to see
.
* Set a message
which reflects the status of the performed operation
.
*
* The message is stored in the session so that it can persist through a redirect.
* If the function is called with no arguments, this function returns all set
* messages without clearing them.
*
* If called with no arguments, this function returns all set messages without
* clearing them.
* @param $message
* The message should begin with a capital letter and always ends with a
* period '.'.
* @param $type
* The type of the message. One of the following values are possible:
* - 'status'
* - 'error'
*/
function
drupal_set_message
(
$message
=
NULL
,
$type
=
'status'
)
{
if
(
isset
(
$message
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment