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

Currently in Joomla hooks can't be used because there is no invocation of civicrm plugins that someone might create. This code will invoke civicrm plugins

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.2.0
    • Component/s: None
    • Labels:
      None

      Description

      Currently CiviCRM does not take advantage of hooks in Joomla because it does not invoke plugins.

      Addint this code:

      //invoke plugins.
      JPluginHelper::importPlugin('civicrm');
      $app =& JFactory::getApplication();
      $app->triggerEvent('onCiviLoad');

      near the top of admin.civicrm.php will allow access to a potential set of civicrm plugins that a user might create or that might be included in a release.

      And example of a plugin is attached.

        Attachments

          Activity

            People

            • Assignee:
              kiran.jagtap Kiran Jagtap
              Reporter:
              mcsmom Elin Waring
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: