You are here

function userpoints_admin_txn_type_submit in User Points 7.2

Submit function for userpoints transaction form, Step 1.

1 string reference to 'userpoints_admin_txn_type_submit'
userpoints_admin_txn in ./userpoints.admin.inc
Form builder for add/edit userpoints transaction form.

File

./userpoints.admin.inc, line 401
Admin menu callbacks for userpoints.module.

Code

function userpoints_admin_txn_type_submit($form, &$form_state) {
  $form_state['rebuild'] = TRUE;
  try {
    $form_state['userpoints_transaction'] = new UserpointsTransaction(array(
      'type' => $form_state['values']['userpoints_transaction_type'],
    ));
  } catch (Exception $e) {
    watchdog_exception('userpoints', $e, 'Could not create !points transaction.', userpoints_translation());
  }
}