Projet

Général

Profil

Révision f066bdb5

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

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/l10n_update/l10n_update.module
38 38
 */
39 39
define('L10N_UPDATE_CRON_UPDATES', 2);
40 40

  
41

  
42 41
/**
43 42
 * Implements hook_help().
44 43
 */
......
205 204
  }
206 205
}
207 206

  
208
/**
209
 * Implements hook_stream_wrappers().
210
 *
211
 * Add a stream wrapper. The wrapper is not used in 7.x-1.x but is required to
212
 * make upgrade to 7.x-2.x painless.
213
 */
214
function l10n_update_stream_wrappers() {
215
  $wrappers['translations'] = array(
216
    'name' => t('Translation files'),
217
    'class' => 'TranslationsStreamWrapper',
218
    'description' => t('Translation files.'),
219
    'type' => STREAM_WRAPPERS_LOCAL_HIDDEN,
220
  );
221

  
222
  return $wrappers;
223
}
224

  
225 207
/**
226 208
 * Menu callback. Saves a string translation coming as POST data.
227 209
 */

Formats disponibles : Unified diff