Projet

Général

Profil

Révision 05237dd8

Ajouté par Assos Assos il y a presque 7 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/imce/inc/imce.admin.inc
109 109
    '#default_value' => variable_get('imce_settings_disable_private', 1),
110 110
    '#description' => t('IMCE serves all files under private files directory without applying any access restrictions. This allows anonymous access to any file(/system/files/filename) unless there is a module restricting access to the files. Here you can disable this feature.'),
111 111
  );
112
  $form['common']['admin_theme'] = array(
113
    '#type' => 'checkbox',
114
    '#title' => t('Use admin theme for IMCE paths'),
115
    '#default_value' => variable_get('imce_settings_admin_theme', FALSE),
116
    '#description' => t('If you have user interface issues with the active theme you may consider switching to admin theme.'),
117
  );
112 118

  
113 119
  $form['submit'] = array('#type' => 'submit', '#value' => t('Save configuration'));
114 120
  $form['#theme'] = 'imce_admin';
......
183 189
  variable_set('imce_settings_replace', $form_state['values']['replace']);
184 190
  variable_set('imce_settings_thumb_method', $form_state['values']['thumb_method']);
185 191
  variable_set('imce_settings_disable_private', $form_state['values']['disable_private']);
192
  variable_set('imce_settings_admin_theme', $form_state['values']['admin_theme']);
186 193
  drupal_set_message(t('Changes have been saved.'));
187 194
}
188 195

  

Formats disponibles : Unified diff