system_goto_action

6 system.module system_goto_action($object, $context)
7 system.module system_goto_action($entity, $context)
8 system.module system_goto_action($entity, $context)

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

2 string references to 'system_goto_action'

File

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

Code

function system_goto_action($entity, $context) {
  drupal_goto(token_replace($context['url'], $context));
}
Login or register to post comments