You are here

function referral_settings in User Referral 5

Same name and namespace in other branches
  1. 6 referral.module \referral_settings()
  2. 7 referral.module \referral_settings()
1 string reference to 'referral_settings'
referral_menu in ./referral.module

File

./referral.module, line 118

Code

function referral_settings() {
  $options = array(
    0 => t('User page'),
    1 => t('Referrals page'),
  );
  $form[REFERRAL_DISPLAY_MODE] = array(
    '#type' => 'radios',
    '#title' => t('Referral link type'),
    '#default_value' => variable_get(REFERRAL_DISPLAY_MODE, 0),
    '#options' => $options,
    '#description' => t('Select the way you want the referral link to be shown.'),
  );
  return system_settings_form($form);
}