function userpoints_transaction_get_types in User Points 7.2
Loads userpoints transaction types.
Parameters
$name: An optional userpoints transaction bundle name.
Return value
Mixed An array of userpoints transaction types or a UserpointsTransactionType.
3 calls to userpoints_transaction_get_types()
- userpoints_admin_txn in ./
userpoints.admin.inc - Form builder for add/edit userpoints transaction form.
- userpoints_entity_info_alter in ./
userpoints.module - Implements hook_entity_info_alter().
- userpoints_transaction_type_load in ./
userpoints.module - Loads userpoints transaction type.
File
- ./
userpoints.module, line 1375
Code
function userpoints_transaction_get_types($name = NULL) {
$types = entity_load_multiple_by_name('userpoints_transaction_type', isset($name) ? array(
$name,
) : FALSE);
return isset($name) ? reset($types) : $types;
}