Projet

Général

Profil

Révision 64156087

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

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/panels/panels_node/panels_node.install
1 1
<?php
2 2

  
3
/**
4
 * @file
5
 */
6

  
3 7
/**
4 8
 * Implementation of hook_schema().
5 9
 */
......
60 64
 * Implements hook_update_dependencies().
61 65
 */
62 66
function panels_node_update_dependencies() {
63
  // Update 7301 requires panels storage support
67
  // Update 7301 requires panels storage support.
64 68
  $dependencies['panels_node'][7301] = array(
65 69
    'panels' => 7305,
66 70
  );
......
69 73
}
70 74

  
71 75
/**
72
 * Implementation of hook_update to handle adding a pipeline
76
 * Implementation of hook_update to handle adding a pipeline.
73 77
 */
74 78
function panels_node_update_6001() {
75 79
  $ret = array();
......
125 129
 */
126 130
function panels_node_update_7302() {
127 131
  if (!isset($sandbox['progress'])) {
128
     // Initialize batch update information.
129
     $sandbox['progress'] = (float)0;
130
     $sandbox['current_did'] = -1;
131
     $sandbox['max'] = db_query("SELECT COUNT(pd.did)
132
    // Initialize batch update information.
133
    $sandbox['progress'] = (float) 0;
134
    $sandbox['current_did'] = -1;
135
    $sandbox['max'] = db_query("SELECT COUNT(pd.did)
132 136
         FROM {panels_display} pd
133 137
           JOIN {panels_node} pn ON pn.did = pd.did
134 138
         WHERE pd.storage_type = ''")->fetchField();
135
   }
139
  }
136 140

  
137 141
  // Set a limit of how many rows to process per batch.
138 142
  $limit = 1000;
139 143

  
140
  // Run the query
144
  // Run the query.
141 145
  $result = db_query_range("SELECT pd.did, pn.nid
142 146
      FROM {panels_display} pd
143 147
        JOIN {panels_node} pn ON pn.did = pd.did

Formats disponibles : Unified diff