Projet

Général

Profil

Révision 9e88ab34

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

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/file_entity/file_entity.admin.inc
1083 1083
    '#element_validate' => array('_file_generic_settings_max_filesize'),
1084 1084
  );
1085 1085

  
1086
  $form['file_entity_default_file_directory'] = array(
1087
    '#type' => 'textfield',
1088
    '#title' => t('Default file directory'),
1089
    '#default_value' => variable_get('file_entity_default_file_directory', ''),
1090
    '#maxlength' => NULL,
1091
  );
1092
  if (module_exists('token')) {
1093
    $form['file_entity_default_file_directory']['#description'] = t('Optional subdirectory within the upload destination where files will be stored if the file is uploaded through the file entity overview page and the directory is not specified otherwise. Do not include preceding or trailing slashes. This field supports tokens.  Suggest using: [current-date:custom:Y]/[current-date:custom:m]/[current-date:custom:d]');
1094
    $form['file_entity_default_file_directory']['tokens'] = array(
1095
      '#theme' => 'token_tree',
1096
      '#dialog' => TRUE,
1097
    );
1098
  }
1099
  else {
1100
    $form['file_entity_default_file_directory']['#description'] = t('Optional subdirectory within the upload destination where files will be stored if the file is uploaded through the file entity overview page and the directory is not specified otherwise. Do not include preceding or trailing slashes.');
1101
  }
1102

  
1086 1103
  $form['file_entity_default_allowed_extensions'] = array(
1087 1104
    '#type' => 'textfield',
1088 1105
    '#title' => t('Default allowed file extensions'),

Formats disponibles : Unified diff