Projet

Général

Profil

Révision b08fce64

Ajouté par Assos Assos il y a plus de 7 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/views/views.install
44 44
  // Generate a sorted list of available schema update functions.
45 45
  if ($get_current || empty($schemas)) {
46 46
    $get_current = FALSE;
47
    $functions = get_defined_functions();
48
    foreach ($functions['user'] as $function) {
49
      if (strpos($function, 'views_schema_') === 0) {
50
        $version = substr($function, strlen('views_schema_'));
51
        if (is_numeric($version)) {
52
          $schemas[] = $version;
53
        }
47
    // Provide a worst-case scenario range.
48
    $start_schema = 6000;
49
    $end_schema = 7999;
50
    for ($i = $start_schema; $i <= $end_schema; $i++) {
51
      if (function_exists('views_schema_' . $i)) {
52
        $schemas[] = $i;
54 53
      }
55 54
    }
56 55
    if ($schemas) {

Formats disponibles : Unified diff