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

hook_civicrm_config is not invoked when running background scripts

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.4.4
    • Fix Version/s: 4.1.0
    • Component/s: CiviCRM API
    • Labels:
      None

      Description

      When executing backgrounds tasks, CiviCRM bootstraps before Drupal. This means that CRM_Core_Config::singleton() invokes hook_civicrm_config before Drupal is active – which means that hook_civicrm_config is necessarily a null-op.

      This is relevant, for example, if you seek to register additional Smarty plugins for use in Smarty-based emails – if hook_civicrm_config doesn't run, then there's no sane and functional way to perform the registration.

      This is similar to CRM-6948 – in both cases, the

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              timotten Tim Otten
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: