1

By default, there are 3 (status / warning and error). I will wish to add the info type, with a blue background for example. What to do?

0

1 Answer 1

4

The status is arbitrary, so:

drupal_set_message('A message', 'custom_status');

Will produce

<div class="messages custom_status">A message</div>

Notice the "custom_status" class, which you can target with CSS.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.