You are here

function userpoints_get_default_tid in User Points 7

Same name and namespace in other branches
  1. 5.3 userpoints.module \userpoints_get_default_tid()
  2. 6 userpoints.module \userpoints_get_default_tid()
  3. 7.2 userpoints.module \userpoints_get_default_tid()

Wrapper function to return the default tid via API call

11 calls to userpoints_get_default_tid()
UserpointsAdminTestCase::testAddEditPoints in tests/userpoints_api.test
UserpointsAPITestCase::testGetDefaultTid in tests/userpoints_api.test
Test the default term id.
UserpointsBaseTestCase::addPoints in tests/userpoints_api.test
Add points through the admin form.
UserpointsBaseTestCase::verifyPoints in tests/userpoints_api.test
Verify the current and optionally max points in a specific category.
userpoints_admin_txn in ./userpoints.admin.inc
Form builder for add/edit userpoints transaction form.

... See full list

File

./userpoints.module, line 1680

Code

function userpoints_get_default_tid() {
  return (int) variable_get(USERPOINTS_CATEGORY_DEFAULT_TID, 0);
}