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?

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.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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