You are here

function userpoints_get_default_tid in User Points 7.2

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 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 ./userpoints.test
UserpointsAPITestCase::testGetDefaultTid in ./userpoints.test
Test the default term id.
UserpointsBaseTestCase::addPoints in ./userpoints.test
Add points through the admin form.
UserpointsBaseTestCase::verifyPoints in ./userpoints.test
Verify the current and optionally max points in a specific category.
UserpointsTransaction::__construct in ./userpoints.transaction.inc
Start a new transaction or update an existing one.

... See full list

File

./userpoints.module, line 1262

Code

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