src/Liip/Drupal/Modules/DrupalConnector/Bootstrap.php
public function drupal_set_message($message = null, $type = 'status', $repeat = true)
    {
        return drupal_set_message($message, $type, $repeat);
    }
public function drupal_set_message($message = null, $type = 'status', $repeat = true)
    {
        return drupal_set_message($message, $type, $repeat);
    }
public function drupal_set_message ( $ message = null , $ type = 'status' , $ repeat = true ) { return drupal_set_message ( $ message , $ type , $ repeat ) ; }
Sets a message to display to the user.

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

@param string $message
(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
(optional) The message's type. Defaults to 'status'. These values are
supported:
- 'status'
- 'warning'
- 'error'
@param bool $repeat
(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.
The indexed array values of each contain the set messages for that type.
Or, if there are no messages set, the function returns NULL.
@see drupal_get_messages()
@see theme_status_messages()
Sets a message to display to the user .