I'm trying to generate a custom token to a prepopulated URL. My code looks like this:
$replacements[$original] = url('user/login', array( 'query' => array('edit[name]', $account->mail), 'absolute' => TRUE, );
The resulting URL looks like this:
& should be a
? because it's the start of a query string. What am I doing wrong?