Projet

Général

Profil

Révision 620f9137

Ajouté par Assos Assos il y a environ 4 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/l10n_update/l10n_update.admin.inc
202 202
    '#default_value' => variable_get('l10n_update_download_store', ''),
203 203
    '#description' => t('A path relative to the Drupal installation directory where translation files will be stored, e.g. sites/all/translations. Saved translation files can be reused by other installations. If left empty the downloaded translation will not be saved.'),
204 204
  );
205
  return system_settings_form($form);
205

  
206
  $form = system_settings_form($form);
207
  $form['#submit'][] = 'l10n_update_admin_settings_form_submit';
208

  
209
  return $form;
206 210
}
207 211

  
208 212
/**
......
220 224
  }
221 225
}
222 226

  
227
/**
228
 * Additional submit handler for update settings.
229
 */
230
function l10n_update_admin_settings_form_submit($form, &$form_state) {
231
  // Add .htaccess file to the translations directory.
232
  l10n_update_ensure_htaccess();
233
}
234

  
223 235
/**
224 236
 * Get array of import options.
225 237
 *

Formats disponibles : Unified diff