You are here

function referral_userpoints in User Referral 5

1 string reference to 'referral_userpoints'
referral.module in ./referral.module

File

./referral.module, line 159

Code

function referral_userpoints($op, $points = 0, $uid = 0, $event = '') {
  switch ($op) {
    case 'setting':
      $group = 'referral';
      $form[$group] = array(
        '#type' => 'fieldset',
        '#collapsible' => TRUE,
        '#collapsed' => TRUE,
        '#title' => t('!Points for referral', userpoints_translation()),
      );
      $form[$group][REFERRAL_USERPOINTS] = array(
        '#type' => 'textfield',
        '#title' => t('!Points for referring a user', userpoints_translation()),
        '#default_value' => variable_get(REFERRAL_USERPOINTS, 0),
        '#size' => 5,
        '#maxlength' => 5,
      );
      return $form;
  }
}