Showing posts with label Display messages in Drupal. Show all posts
Showing posts with label Display messages in Drupal. Show all posts

Tuesday, May 17, 2011

Display messages in Drupal

Syntax:

4.6 – 5    drupal_set_message($message = NULL, $type = 'status')
6 – 8    drupal_set_message($message = NULL, $type = 'status', $repeat = TRUE) 
     

Set a message which reflects the status of the performed operation.
If the function is called with no arguments, this function returns all set messages without clearing them.

Parameters

$message The message should begin with a capital letter and always ends with a period '.'.
$type The type of the message. One of the following values are possible:
  • 'status'
  • 'warning'
  • 'error'
$repeat If this is FALSE and the message is already set, then the message won't be repeated.

 




Followers