Projet

Général

Profil

Révision 560c3060

Ajouté par Julien Enselme il y a plus de 8 ans

Update ctools 1.7 -> 1.9

Voir les différences:

drupal7/sites/all/modules/ctools/includes/plugins.inc
79 79
      }
80 80

  
81 81
      // Only process if version is between minimum and current, inclusive.
82
      if (version_compare($version, $minimum_version, '>=') && version_compare($version, $current_version, '<=')) {
82
      if (($version == $minimum_version) || ($version == $current_version)
83
        || (version_compare($version, $minimum_version, '>=')
84
        && version_compare($version, $current_version, '<='))) {
83 85
        if (!isset($info['path'])) {
84 86
          $info['path'] = drupal_get_path('module', $module);
85 87
        }
......
110 112
    }
111 113

  
112 114
    // Allow other modules to hook in.
113
    drupal_alter($hook, $cache[$owner][$api]);
115
    drupal_alter($hook, $cache[$owner][$api], $owner, $api);
114 116
  }
115 117

  
116 118
  return $cache[$owner][$api];
......
213 215
 */
214 216
function ctools_get_plugins($module, $type, $id = NULL) {
215 217
  // Store local caches of plugins and plugin info so we don't have to do full
216
  // lookups everytime.
218
  // lookups every time.
217 219
  static $drupal_static_fast;
218 220
  if (!isset($drupal_static_fast)) {
219 221
    $drupal_static_fast['plugins'] = &drupal_static('ctools_plugins', array());

Formats disponibles : Unified diff