Problem/Motivation

Forum module uses

drupal_map_assoc(range(2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20));

to setup options for block configuration. This patch changes it to use range() function instead which makes the code more readable.

Proposed resolution

See patch

Remaining tasks

Review the patch

User interface changes

None

API changes

None

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

larowlan’s picture

Status: Active » Needs review
FileSize
843 bytes
Deciphered’s picture

Status: Needs review » Reviewed & tested by the community

Reviewed and tested, pretty straight forward.

xjm’s picture

FileSize
870 bytes

Looks like a good cleanup. Attached reformats the array per our array formatting standards, since it is over 80 chars: http://drupal.org/coding-standards#array

xjm’s picture

#3: forum-1716036-3.patch queued for re-testing.

catch’s picture

Status: Reviewed & tested by the community » Fixed

Much better, thanks!

xjm’s picture

Version: 8.x-dev » 7.x-dev
Status: Fixed » Patch (to be ported)
Issue tags: +Needs backport to D7

This is also backportable (the 7.x code is the same).

larowlan’s picture

Status: Patch (to be ported) » Needs review
FileSize
849 bytes
dcam’s picture

#7: forum-range-1716036-7.patch queued for re-testing.

dcam’s picture

Status: Needs review » Reviewed & tested by the community

I reviewed #7. It's the same change that was applied to D8. I tested the functionality in the forum block and it doesn't change after applying. Setting this as RTBC.

David_Rothstein’s picture

Status: Reviewed & tested by the community » Fixed

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