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

Introduce hook_civicrm_alterContent

    Details

    • Type: New Feature
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.1.0
    • Fix Version/s: 4.1.0
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      CiviCRM 4.x introduced the requirement that when utilizing CiviCRM hooks with Joomla that the code be "inserted" via Joomla Plugins. However, Joomla Plugins cannot manage files in the CiviCRM Custom directories. This prevents hooks from directly taking advantage of the template_name.extra.tpl feature which was also introduced.

      In an effort to alleviate the need to manage files outside of the plugins folder the attached patch creates a hook that receives the entire content of the generated page after all template.extra.tpl files have been "attached". The hook is then free to modify the content. In an effort to provide some idea of the context of the call the hook also receives the name of the template being utilized.

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              mneimeyer Matt Neimeyer
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: