You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 5, 2018. It is now read-only.
'#description' => 'Files must be less than <strong>' . format_size($validators['file_validate_size'][0]) . '</strong><br> Allowed file types: <strong>' . $validators['file_validate_extensions'][0] . '</strong>',
48
+
'#description' => $this->t('Files must be less than <strong>' . format_size($validators['file_validate_size'][0]) . '</strong><br> Allowed file types: <strong>' . $validators['file_validate_extensions'][0] . '</strong>'),
44
49
'#upload_validators' => $validators,
45
50
);
46
51
47
52
$form['pattern'] = array(
48
53
'#type' => 'textfield',
49
54
'#title' => $this->t('Pattern'),
50
-
'#description' => $this->t('Only files matching this pattern will be imported. For example, to import all jpg and gif files, the pattern would be <em>*.jpg|*.gif</em>. Use <em>.*</em> to extract all files in the archive.'),
55
+
'#description' => $this->t('Only files matching this pattern will be imported. For example, to import all jpg and gif files, the pattern would be <strong>.*jpg|.*gif</strong>. Use <strong>.*</strong> to extract all files in the archive.'),
51
56
'#default_value' => '.*',
52
57
'#required' => TRUE,
53
58
);
54
59
60
+
$form['remove_archive'] = array(
61
+
'#type' => 'checkbox',
62
+
'#title' => $this->t('Remove archive'),
63
+
'#description' => $this->t('Removes archive after extraction.'),
64
+
'#default_value' => FALSE,
65
+
);
66
+
55
67
$form['actions'] = array('#type' => 'actions');
56
68
$form['actions']['submit'] = array(
57
69
'#type' => 'submit',
@@ -91,62 +103,28 @@ public function submitForm(array &$form, FormStateInterface $form_state) {
0 commit comments