Provide admin UI for changing recurly_date_format variable.

Created on 27 December 2013, over 11 years ago
Updated 11 December 2023, over 1 year ago

The function recurly_format_date makes use of the variable 'recurly_date_format', however, there is no admin UI for changing this setting. You can of course change it via something like settings.php, but it's not even documented which makes it a bit mysterious.

function recurly_format_date($date) {
  $format = variable_get('recurly_date_format', 'long');

I think the thing to do here would be to allow for:

1. Setting the 'recurly_date_format' variable via the config screen
2. Allow the recurly_format_date function to accept an optional $format parameter so that when using it as an API function it's easier for a developer to determine what the output will look like.

✨ Feature request
Status

Needs review

Version

5.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States eojthebrave Minneapolis, MN

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024