Projet

Général

Profil

Révision a5ba142b

Ajouté par Assos Assos il y a presque 6 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/rules/rules.module
4 4
 * @file Rules engine module
5 5
 */
6 6

  
7
// The class autoloader may fail for classes added in 7.x-2.4 (Issue 2090511).
8
if (!drupal_autoload_class('RulesEventHandlerEntityBundle')) {
9
  require_once dirname(__FILE__) . '/includes/rules.event.inc';
10
}
11

  
7 12
// Include our hook implementations early, as they can be called even before
8 13
// hook_init().
9 14
require_once dirname(__FILE__) . '/modules/events.inc';
......
1020 1025
  $event_name = $args[0];
1021 1026
  unset($args[0]);
1022 1027
  // We maintain a whitelist of configured events to reduces the number of cache
1023
  // reads. If the whitelist is empty we proceed and it is rebuilt.
1028
  // reads. If the whitelist is not in the cache we proceed and it is rebuilt.
1024 1029
  if (rules_event_invocation_enabled()) {
1025 1030
    $whitelist = rules_get_cache('rules_event_whitelist');
1026
    if ((empty($whitelist) || isset($whitelist[$event_name])) && $event = rules_get_cache('event_' . $event_name)) {
1031
    if ((($whitelist === FALSE) || isset($whitelist[$event_name])) && $event = rules_get_cache('event_' . $event_name)) {
1027 1032
      $event->executeByArgs($args);
1028 1033
    }
1029 1034
  }

Formats disponibles : Unified diff