Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
8a3a18bb
Commit
8a3a18bb
authored
Oct 05, 2012
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#1798782
by andreiashu: Convert field_purge_batch_size() to CMI.
parent
e6b68ba9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
core/modules/field/config/field.settings.yml
core/modules/field/config/field.settings.yml
+1
-0
core/modules/field/field.module
core/modules/field/field.module
+1
-1
No files found.
core/modules/field/config/field.settings.yml
0 → 100644
View file @
8a3a18bb
purge_batch_size
:
10
core/modules/field/field.module
View file @
8a3a18bb
...
@@ -323,7 +323,7 @@ function field_cron() {
...
@@ -323,7 +323,7 @@ function field_cron() {
field_sync_field_status
();
field_sync_field_status
();
// Do a pass of purging on deleted Field API data, if any exists.
// Do a pass of purging on deleted Field API data, if any exists.
$limit
=
variable_get
(
'field_
purge_batch_size'
,
10
);
$limit
=
config
(
'field.settings'
)
->
get
(
'
purge_batch_size'
);
field_purge_batch
(
$limit
);
field_purge_batch
(
$limit
);
}
}
...
...
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