You are here

function token_actions_message_action in Token 6

Action callback to send a message to the current user's screen.

See also

token_actions_message_action_form()

token_actions_message_action_submit()

1 string reference to 'token_actions_message_action'
TokenActionsTestCase::testUserActions in ./token_actions.test
Test user actions and triggers.

File

./token_actions.module, line 181
The Token Actions module.

Code

function token_actions_message_action(&$object, $context = array()) {
  token_normalize_context($context);
  $context['message'] = token_replace_multiple($context['message'], $context);
  drupal_set_message($context['message']);
}