Skip to content

Instantly share code, notes, and snippets.

@hannesl
Created May 29, 2013 08:49
Show Gist options
  • Select an option

  • Save hannesl/5668892 to your computer and use it in GitHub Desktop.

Select an option

Save hannesl/5668892 to your computer and use it in GitHub Desktop.
Drupal messages testing/styling spree.
function mymodule_init() {
drupal_set_message('A test message.', 'status');
drupal_set_message(str_repeat('Another message. ', 10), 'status');
drupal_set_message('A test warning.', 'warning');
drupal_set_message('A test error!!!', 'error');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment