You are here

function token_actions_goto_action in Token 6

Action callback to redirect the user to a tokenized URL.

See also

token_actions_goto_action_form()

token_actions_goto_action_submit()

File

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

Code

function token_actions_goto_action($object, $context) {
  token_normalize_context($context);
  drupal_goto(token_replace_multiple($context['url'], $context));
}