Please see: http://drupal.org/node/674020
i hope help. I write a function name your_module_block (update to new module name) to doing this task:
function your_module_block($op = 'list', $delta = 0, $edit = array()) { global $user; $block = array(); switch ($op) { case 'list': $block = array(); $block[0]['info'] = t('Users point total'); return $blocks; break; case 'view': $title = ''; $content = ''; $title = t('Total Points User'); $content = t('%u points : %p', array('%u' => $user->name, '%p' => userpoints_get_current_points($user->uid))); $block['subject'] = $title; $block['content'] = $content; return $block; break; } }
If you think the function does what you want, please donate to drupal the money.
Comments
block userpointtotal
i hope help. I write a function name your_module_block (update to new module name) to doing this task:
If you think the function does what you want, please donate to drupal the money.