You are here

function referral_trigger_form_alter in User Referral 6

File

referral_trigger/referral_trigger.module, line 44

Code

function referral_trigger_form_alter(&$form, $form_state, $form_id) {
  if ($form_id == 'system_actions_configure' && $form['recipient']) {
    $form['recipient']['#description'] = $form['recipient']['#description'] . ' ' . t('If sending an email via the User Referral trigger, using %author will send the email to the referring user\'s email.');
  }
  if (isset($form['type']) && $form['type']['#value'] . '_node_settings' == $form_id) {
    $form['workflow']['upload_' . $form['type']['#value']] = array(
      '#type' => 'radios',
      '#title' => t('Attachments'),
      '#default_value' => variable_get('upload_' . $form['type']['#value'], 1),
      '#options' => array(
        t('Disabled'),
        t('Enabled'),
      ),
    );
  }
}