function userpoints_get_default_tid in User Points 7
Same name and namespace in other branches
- 5.3 userpoints.module \userpoints_get_default_tid()
- 6 userpoints.module \userpoints_get_default_tid()
- 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.
File
- ./
userpoints.module, line 1680
Code
function userpoints_get_default_tid() {
return (int) variable_get(USERPOINTS_CATEGORY_DEFAULT_TID, 0);
}