1function hook_form_alter(&$form, &$form_state, $form_id) {
2 if (isset($form['type']) && $form['type']['#value'] . '_node_settings' == $form_id) {
3 $form['workflow']['upload_' . $form['type']['#value']] = array(
4 '#type' => 'radios',
5 '#title' => t('Attachments'),
6 '#default_value' => variable_get('upload_' . $form['type']['#value'], 1),
7 '#options' => array(
8 t('Disabled'),
9 t('Enabled'),
10 ),
11 );
12 }
13}