userpoints_votingapi.module doesn't use hook_userpoints() to add more settings in the userpoints.module settings form.

CommentFileSizeAuthor
#3 userpoints_votingapi_module_1.patch4.62 KBapaderno
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kbahey’s picture

Project: User Points Contributed modules » User Points Voting API
Version: 5.x-3.x-dev » 5.x-1.x-dev
Component: Code: userpoints_votingapi » Code

This is now a separate project.

apaderno’s picture

This is a little confusing. There is the same module in the 'User Points Contributed modules" 5.x-3.x-dev.
Which one should be considerate the last version?

apaderno’s picture

Status: Active » Needs review
FileSize
4.62 KB

The patch resolves also a bug in lines like:

    $form[$group][userpoints_votingapi_moderation] = array(
      '#type' => 'checkbox',
      '#title' => t('Moderate votes'),
      '#default_value' => variable_get(userpoints_votingapi_moderation, 0),
      '#description' => t('Moderate User Points earned from votes.'),
    );

which should be written:

    $form[$group]['userpoints_votingapi_moderation'] = array(
      '#type' => 'checkbox',
      '#title' => t('Moderate votes'),
      '#default_value' => variable_get('userpoints_votingapi_moderation', 0),
      '#description' => t('Moderate User Points earned from votes.'),
    );
apaderno’s picture

Category: task » bug
kmillecam’s picture

Status: Needs review » Fixed

Patch committed to 5.x-2.1

Thanks Kiam

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.