function userpoints_confirm_approve_submit in User Points 7
Same name and namespace in other branches
- 5.3 userpoints.module \userpoints_confirm_approve_submit()
- 5.2 userpoints.module \userpoints_confirm_approve_submit()
- 6 userpoints.module \userpoints_confirm_approve_submit()
- 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';
}