You are here

public function FeedsExTestMessenger::setMessage in Feeds extensible parsers 7

Same name and namespace in other branches
  1. 7.2 src/FeedsExBase.inc \FeedsExTestMessenger::setMessage()

Sets a message to display to the user.

Parameters

string $message: The message.

string $type: (optional) The type of message. Defaults to 'status'.

bool $repeat: (optional) Whether to allow the message to repeat. Defaults to true.

Overrides FeedsExMessengerInterface::setMessage

See also

drupal_set_message()

File

src/FeedsExBase.inc, line 835
Contains FeedsExBase.

Class

FeedsExTestMessenger
Stores messages without calling drupal_set_mesage().

Code

public function setMessage($message = NULL, $type = 'status', $repeat = TRUE) {
  $this->messages[] = array(
    'message' => $message,
    'type' => $type,
    'repeat' => $repeat,
  );
}