You are here

function userpoints_confirm_approve_submit in User Points 7

Same name and namespace in other branches
  1. 5.3 userpoints.module \userpoints_confirm_approve_submit()
  2. 5.2 userpoints.module \userpoints_confirm_approve_submit()
  3. 6 userpoints.module \userpoints_confirm_approve_submit()
  4. 7.2 userpoints.admin.inc \userpoints_confirm_approve_submit()

@file Admin menu callbacks for userpoints.module.

File

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

Code

function userpoints_confirm_approve_submit($form, &$form_state) {
  global $user;
  $params = array(
    'txn_id' => $form_state['values']['txn_id'],
    'approver_uid' => $user->uid,
    'status' => $form_state['values']['operation'],
  );
  userpoints_userpointsapi($params);
  $form_state['redirect'] = 'admin/config/people/userpoints/moderate';
}