Skip to content

Instantly share code, notes, and snippets.

@jessebeach
Last active December 16, 2015 05:29
Show Gist options
  • Select an option

  • Save jessebeach/5384896 to your computer and use it in GitHub Desktop.

Select an option

Save jessebeach/5384896 to your computer and use it in GitHub Desktop.
Simple Drupal.announce example
// Pass a string.
Drupal.announce('The application has been updated.');
// Make sure the string is translatable.
Drupal.announce(
Drupal.t('The application has been updated.')
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment