I think this should work similar to the above.
```php
$params = array('mode' => 'login_link');
$url = append_sid("ucp.$phpEx", array($params + $login['redirect_data']));
```