function userpoints_transaction_type_exists in User Points 7.2
Checks if the userpoints transaction type exists.
Parameters
$name: Userpoints transaction bundle name.
Return value
bool
1 string reference to 'userpoints_transaction_type_exists'
- userpoints_transaction_type_form in ./
userpoints.admin.inc - Userpoints transaction type form.
File
- ./
userpoints.module, line 1356
Code
function userpoints_transaction_type_exists($name) {
$type = userpoints_transaction_type_load($name);
if ($type) {
return TRUE;
}
return FALSE;
}