How can I adjust the position of a cancel button added with hook_form_alter()?
Use the following code.
$form['actions']['cancel'] = array(
 '#type' =&gt; 'markup',
 '#markup' =&gt; $link,
);

If it doesn't work, check with print_r() where the submission buttons are added in the form array. Usually, it's $form['actions'], but sometimes can be a different array index.