Error is thrown because the scope of $output isn't global to the return.
diff --git a/sites/all/modules/userpoints/userpoints.module b/sites/all/modules/userpoints/userpoints.module
index 12d1e84..1ab3f25 100644
--- a/sites/all/modules/userpoints/userpoints.module
+++ b/sites/all/modules/userpoints/userpoints.module
@@ -68,6 +68,7 @@ function userpoints_txn_status() {
* Implementation of hook_help().
*/
function userpoints_help($section) {
+ $output='';
switch ($section) {
case 'admin/settings/userpoints':
$output = t('Configure userpoints moderation and branding translation', userpoints_translation());
diff --git a/sites/all/modules/userpoints/userpoints_basic.module b/sites/all/modules/userpoints/userpoints_basic.module
index 3176fb2..b5ced9a 100644
--- a/sites/all/modules/userpoints/userpoints_basic.module
+++ b/sites/all/modules/userpoints/userpoints_basic.module
@@ -11,6 +11,7 @@ define('USERPOINTS_MODERATE_COMMENT', 'userpoints_moderate_comment');
define('USERPOINTS_USE_V2BUG', 'userpoints_use_v2bug');
function userpoints_basic_help($section) {
+ $output='';
switch ($section) {
case 'admin/settings/userpoints_basic':
$output = t('UP: Some basic interfaces for userpoints, such as posting nodes, comments, ...etc.');
Comments
Comment #1
kbahey commentedPlease attach the patch in proper format. See http://drupal.org/patch for details.
Also, can you please specify if this is 6.x or 5.x? Select the correct drop down from "Version". HEAD is not a stable branch.
Comment #2
jredding commentedno longer applies although the issue was fixed in a different manner.