Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-8067

Support arbitrary number of arguments in hooks.

    Details

    • Type: Patch
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Won't Fix
    • Affects Version/s: Unscheduled
    • Fix Version/s: 4.4.0
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      I have modified the hooks framework to be able to handle hooks with an arbitrary number of arguments. At the same time it greatly reduces the lines of code.

      The principle that is used to call the hooks is also mentioned here: http://drupal.org/node/353494

      The patch should be perfectly backwards-compatible. No behavior that is used in other modules is changed.

        Attachments

        1. simplify_hooks.patch
          30 kB
          Roman Zimmermann
        2. simplify_hooks.patch
          29 kB
          Roman Zimmermann

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              torotil Roman Zimmermann
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 10 minutes
                10m
                Remaining:
                Remaining Estimate - 10 minutes
                10m
                Logged:
                Time Spent - Not Specified
                Not Specified