function dialog_command_redirect in Dialog 7.2
Same name and namespace in other branches
- 7 dialog.module \dialog_command_redirect()
Provides an AJAX command to redirect the page.
Parameters
string $url: The URL that will be loaded into window.location. This should be a full URL, one that has already been run through the url() function.
Return value
array An array suitable for use with the ajax_render() function.
File
- includes/
dialog.commands.inc, line 163 - AJAX commands.
Code
function dialog_command_redirect($url) {
return array(
'command' => 'redirect',
'url' => $url,
);
}