positioning sticky field using hook_form_alter in drupal 7 I'm trying to remove the sticky option from the option bar and adding it to the user form.

function vacancies_form_vacature_node_form_alter(&amp;$form, &amp;$form_state, $form_id) {
// remove sticky field from default (option) location
unset($form['options']['sticky']);

//create new sticky field
$form['sticky'] = array (
    '#type' =&gt; 'checkbox',
    '#title' =&gt; 'Top vacature',
    '#default_value' =&gt; $form['#node']-&gt;sticky,
    '#weight' =&gt; -1,
);

dsm($form);


}

Weight of other elements go from 1 to 14 so -1 should put this form element on top.
But with the code above it shows up at the end of the form.

How do I put the sticky button in the middle of my form?
This code:

$form['sticky'] = array (
    '#type' =&gt; 'checkbox',
    '#title' =&gt; 'Top vacature',
    '#default_value' =&gt; $form['#node']-&gt;sticky,
    '#weight' =&gt; -100,
);


works for me just fine. I don't know what's happening in your node edit form, but for me title field had #weight equal to -5, so obviously this item with weight -1 wouldn't show up on top.