2 * Implements hook_form_alter().
4 function {{ machine_name }}_form_alter(&$form, &$form_state, $form_id) {
5 if (isset($form['type']) && $form['type']['#value'] . '_node_settings' == $form_id) {
6 $form['workflow']['upload_' . $form['type']['#value']] = array(
8 '#title' => t('Attachments'),
9 '#default_value' => variable_get('upload_' . $form['type']['#value'], 1),
10 '#options' => array(t('Disabled'), t('Enabled')),