Uploaded image for project: 'OODT'
  1. OODT
  2. OODT-478

Balance: New hook for hooks.php

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.4
    • Fix Version/s: 0.5
    • Component/s: balance
    • Labels:
      None

      Description

      I would like to recommend adding an additional hook "hook_before_all" to Balance. Currently, the hooks (hook_before_header, hook_before_view, hook_before_footer, hook_before_send) if defined are called for views only. In my case I would like a callback to be executed for both views and scripts. This will allow us to execute the same logic for both views and scripts.

      <?php
      // Additional callback for hooks.php

      /**

      • hook_before_all
        *
      • This is the first hook called for both views and scripts (*.do).
        */
        function hook_before_all() {}

      ?>

      Please see attached patch...

      Cheers & Thanks!

        Attachments

        1. BalanceHookBeforeAll20120730.patch.diff
          2 kB
          Nesbert Hidalgo
        2. BalanceHookBeforeAll.patch.diff
          1 kB
          Nesbert Hidalgo

          Activity

            People

            • Assignee:
              ahart Andrew Hart
              Reporter:
              nesbert Nesbert Hidalgo
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: