function userpoints_block_info in User Points 7
Same name and namespace in other branches
- 7.2 userpoints.module \userpoints_block_info()
Implements hook_block_info().
File
- ./
userpoints.module, line 1429
Code
function userpoints_block_info() {
$blocks[-1]['info'] = t('User\'s !points', userpoints_translation());
// Grab a list of the available terms.
$terms = userpoints_get_categories();
foreach ($terms as $key => $value) {
$blocks[$key]['info'] = t("Highest @term !points", userpoints_translation() + array(
'@term' => $value,
));
}
return $blocks;
}