function userpoints_txn_status in User Points 7
Same name and namespace in other branches
- 5.3 userpoints.module \userpoints_txn_status()
- 5 userpoints.module \userpoints_txn_status()
- 5.2 userpoints.module \userpoints_txn_status()
- 6 userpoints.module \userpoints_txn_status()
- 7.2 userpoints.module \userpoints_txn_status()
4 calls to userpoints_txn_status()
- userpoints_admin_txn in ./
userpoints.admin.inc - Form builder for add/edit userpoints transaction form.
- userpoints_get_transaction_row in ./
userpoints.module - Returns a single row for a transaction listing.
- userpoints_tokens in ./
userpoints.module - Implements hook_tokens().
- userpoints_view_transaction in ./
userpoints.pages.inc - Menu callback; display details about a specific transaction.
1 string reference to 'userpoints_txn_status'
- _userpoints_userpoints_transaction_properties in ./
userpoints.module - Returns properties of userpoints_transaction data object.
File
- ./
userpoints.module, line 55
Code
function userpoints_txn_status() {
static $stati;
if (empty($stati)) {
$stati = array(
USERPOINTS_TXN_STATUS_APPROVED => t('Approved'),
USERPOINTS_TXN_STATUS_PENDING => t('Pending'),
USERPOINTS_TXN_STATUS_DECLINED => t('Declined'),
);
}
return $stati;
}