function system_goto_action

Redirects to a different URL.

Parameters

$entity: Ignored.

array $context: Array with the following elements:

  • 'url': URL to redirect to. This will be passed through token_replace().
  • Other elements will be used as the data for token replacement.

Related topics

1 string reference to 'system_goto_action'
ActionsConfigurationTestCase::testActionConfiguration in modules/simpletest/tests/actions.test
Test the configuration of advanced actions through the administration interface.

File

modules/system/system.module, line 3388

Code

function system_goto_action($entity, $context) {
    drupal_goto(token_replace($context['url'], $context));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.