How could this ever have worked!?

The form alter adds dropdowns in form.autonodequeue.NODETYPE. The submit handler reads the values from form_state.values.autonodequeue.NODETYPE.value. Where would the 'value' come from!?

If you change

$connection_type = (int) $connection_type['value'];

to

$connection_type = (int) $connection_type;

it works perfectly.

Comments

rudiedirkx’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.