How to alter a form's name attribute I'm trying to override the Drupal Login form. I have been able to unset and modify pieces of it, but the last thing I am struggling with is the name attribute on the submit button. Currently, the button looks like this:

 &lt;button class="btn btn-default form-submit" id="edit-submit" name="op" value="Log in" type="submit"&gt;Log in&lt;/button&gt;


I am trying to get rid of the name attribute, but I don't see it listed as a array element when I dpm($form). How do I alter this

EDIT:
I almost figured it out. I found that the below can be used to alter the name attribute, but I cant remove it, even if I set it equal to NULL. When set to null, it defaults to 'op':

$form['actions']['submit']['#attributes']['name'] = 'submit';
It's possible that "op" is a default that gets applied if there's nothing already there.

Try:

$form['#submit']['#attributes']['name'] = 'thing-you-want-to-call-it';