system_goto_action
function system_goto_action
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
File
- modules/system/system.module, line 3346
- 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)); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!system!system.module/function/system_goto_action/7.x