function system_goto_action

7.x system.module system_goto_action($entity, $context)

Redirects to a different URL.


$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

2 string references to 'system_goto_action'
ActionsConfigurationTestCase::testActionConfiguration in drupal/modules/simpletest/tests/actions.test
Test the configuration of advanced actions through the administration interface.
system_action_info in drupal/modules/system/system.module
Implements hook_action_info().


drupal/modules/system/system.module, line 3301
Configuration system that lets administrators modify the workings of the site.


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