use is_callable instead function_exists

Created on 1 July 2020, about 5 years ago
Updated 30 July 2025, 13 days ago

Using is_callable instead of function_exists to test the field callback would be safer and allows to pass a static method with the array descriptor syntax.

Please find attached a patch that fixes that.

Hope this helps.

πŸ› Bug report
Status

Closed: outdated

Version

1.3

Component

Code

Created by

πŸ‡«πŸ‡·France ceonizm Marseille

Live updates comments and jobs are added and updated live.
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.

  • πŸ‡ΊπŸ‡¦Ukraine bohart Lutsk, Ukraine

    D7 reached its EOL back in January 2025, and there is no active release for D7 for this module anymore.
    Development or support is not planned for D7.

    All D7-related issues are marked as outdated in a bunch.
    Still, everyone can apply the patch above (not tested by the maintainers) to their projects.

    If the issue's topic is actual in D10+ versions, please create a follow-up issue or comment on this one (to re-open and switch to the 2.2.x development branch).
    Thanks!

Production build 0.71.5 2024