Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
synhelper
Commits
188644bc
Commit
188644bc
authored
Feb 21, 2018
by
APolitsin
Browse files
Update FormFieldConfigEditFormAlter.php
parent
cc6a804f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Hook/FormFieldConfigEditFormAlter.php
View file @
188644bc
...
...
@@ -20,7 +20,10 @@ class FormFieldConfigEditFormAlter extends ControllerBase {
// File.
if
(
isset
(
$form
[
'settings'
][
'max_filesize'
][
'#default_value'
]))
{
drupal_set_message
(
'Это Файл! syndev.module\form_alter'
);
$form
[
'settings'
][
'max_filesize'
][
'#default_value'
]
=
'25 MB'
;
if
(
!
$form
[
'settings'
][
'max_filesize'
][
'#default_value'
])
{
$form
[
'settings'
][
'max_filesize'
][
'#default_value'
]
=
'25 MB'
;
}
if
(
isset
(
$form
[
'settings'
][
'file_directory'
]))
{
$node_type
=
$path_args
[
5
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment