Projet

Général

Profil

Révision 389fb945

Ajouté par Assos Assos il y a presque 5 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/webform/includes/webform.admin.inc
20 20
  );
21 21

  
22 22
  // Add each component to the form:
23
  $form['components'] = array('#tree' => TRUE);
23
  $form['components'] += array('#tree' => TRUE);
24 24
  $component_types = webform_components(TRUE);
25 25
  foreach ($component_types as $key => $component) {
26 26
    $form['components'][$key] = array(
......
255 255
    '#description' => t('When mapping emails addresses to a select component, limit the choice to components with less than the amount of options indicated. This is to avoid flooding the email settings form.'),
256 256
  );
257 257

  
258
  $form['advanced']['webform_fieldset_wrap'] = array(
259
    '#type' => 'checkbox',
260
    '#title' => t('Use fieldsets for grouped components'),
261
    '#default_value' => webform_variable_get('webform_fieldset_wrap'),
262
    '#description' => t('Components containing multiple fields, such as checkboxes and radio buttons, will be wrapped in fieldsets. This improves the accessibility of webforms and helps them conform to web standards, but may require updates to the CSS of the active theme.'),
263
  );
264

  
258 265
  $form = system_settings_form($form);
259 266
  $form['#theme'] = 'webform_admin_settings';
260 267
  array_unshift($form['#submit'], 'webform_admin_settings_submit');

Formats disponibles : Unified diff