$instance = array(
'field_name' => $field_name,
'entity_type' => $entity,
'bundle' => $bundle,
'field types' => 'list_boolean',
'widget' => array(
'type' => 'options_onoff',
'settings' => array('display_label' => 1)
),
'default_value' => array(array('value' => 1)),
);
this is not taken, and i have to save it twice in the admin contenttype – field/edit,
until it takes it …
i now exported the finished field with the features module,
and took the generated code – suddenly it works, with
default_valuei guess i was missing the property
moduleon the field, alsofield typesis inexistant ..