You are here

function commerce_userpoints_currencies in Commerce userpoints 7

Returns the currently configured userpoints currencies.

Return value

An array of userpoints categories

10 calls to commerce_userpoints_currencies()
commerce_userpoints_commerce_currency_info in ./commerce_userpoints.module
Implements hook_commerce_currency_info().
commerce_userpoints_currencies_delete_submit in ./commerce_userpoints.admin.inc
Form submit callback for the delete confirmation form.
commerce_userpoints_currencies_form in ./commerce_userpoints.admin.inc
Form builder function to add a new userpoints category.
commerce_userpoints_currencies_form_submit in ./commerce_userpoints.admin.inc
Form submit callback, saves a new currency.
commerce_userpoints_currencies_option_list in ./commerce_userpoints.module

... See full list

2 string references to 'commerce_userpoints_currencies'
commerce_userpoints_currencies_delete_submit in ./commerce_userpoints.admin.inc
Form submit callback for the delete confirmation form.
commerce_userpoints_currencies_form_submit in ./commerce_userpoints.admin.inc
Form submit callback, saves a new currency.

File

./commerce_userpoints.module, line 88
Hook implementations and API functions for the commerce_userpoints module.

Code

function commerce_userpoints_currencies() {
  return variable_get('commerce_userpoints_currencies', array());
}