function userpoints_get_categories in User Points 5.3
Same name and namespace in other branches
- 6 userpoints.module \userpoints_get_categories()
- 7.2 userpoints.module \userpoints_get_categories()
- 7 userpoints.module \userpoints_get_categories()
7 calls to userpoints_get_categories()
- theme_userpoints_list_users in ./
userpoints.module - userpoints_admin_manage in ./
userpoints.module - userpoints_admin_points in ./
userpoints.module - userpoints_admin_settings in ./
userpoints.module - menu callback for settings form.
- userpoints_admin_txn in ./
userpoints.module
1 string reference to 'userpoints_get_categories'
- userpoints_views_views_tables in ./
userpoints_views.module - Implementation of hook_views_tables(): Present fields and filters for user data.
File
- ./
userpoints.module, line 1705
Code
function userpoints_get_categories() {
$vid = userpoints_get_vid();
//Create the "Uncategorized" category
$options = array();
$options[0] = t('!Uncategorized', userpoints_translation());
if ($vid) {
$tree = taxonomy_get_tree($vid, 0, -1, 1);
foreach ($tree as $term) {
$options[$term->tid] = $term->name;
}
}
return $options;
}