Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
X
xmlsitemap
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
xmlsitemap
Commits
f5ae066d
Commit
f5ae066d
authored
Aug 05, 2014
by
andrei.dincu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2249723
by andrei.dincu: Store max_chunks and max_filesize as state variables
parent
758b0593
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
14 deletions
+6
-14
config/install/xmlsitemap.settings.yml
config/install/xmlsitemap.settings.yml
+0
-2
config/schema/xmlsitemap.schema.yml
config/schema/xmlsitemap.schema.yml
+0
-6
xmlsitemap.module
xmlsitemap.module
+6
-6
No files found.
config/install/xmlsitemap.settings.yml
View file @
f5ae066d
...
...
@@ -15,5 +15,3 @@ regenerate_last: {}
custom_links
:
{}
priority_default
:
{}
languages
:
{}
max_chunks
:
{}
max_filesize
:
{}
\ No newline at end of file
config/schema/xmlsitemap.schema.yml
View file @
f5ae066d
...
...
@@ -55,12 +55,6 @@ xmlsitemap.settings:
languages
:
type
:
mapping
label
:
'
Languages
for
xmlsitemap'
max_chunks
:
type
:
undefined
label
:
'
Max
chunks'
max_filesize
:
type
:
undefined
label
:
'
Maximul
size
of
xml
file'
xmlsitemap.*
:
type
:
config_entity
...
...
xmlsitemap.module
View file @
f5ae066d
...
...
@@ -233,9 +233,7 @@ function xmlsitemap_config_variables() {
'regenerate_last'
=>
NULL
,
'custom_links'
=>
NULL
,
'priority_default'
=>
NULL
,
'languages'
=>
NULL
,
'max_chunks'
=>
NULL
,
'max_filesize'
=>
NULL
,
'languages'
=>
NULL
);
}
...
...
@@ -251,7 +249,9 @@ function xmlsitemap_state_variables() {
'xmlsitemap_regenerate_needed'
=>
TRUE
,
'xmlsitemap_base_url'
=>
''
,
'xmlsitemap_generated_last'
=>
0
,
'xmlsitemap_developer_mode'
=>
0
'xmlsitemap_developer_mode'
=>
0
,
'max_chunks'
=>
NULL
,
'max_filesize'
=>
NULL
);
}
...
...
@@ -1074,7 +1074,7 @@ function xmlsitemap_calculate_changefreq($timestamps) {
* This function needs to be called before system_settings_form_submit() or any
* calls to variable_set().
*/
function
xmlsitemap_form_submit_flag_regenerate
(
array
$form
,
FormStateInterface
$form_state
)
{
function
xmlsitemap_form_submit_flag_regenerate
(
array
$form
,
FormStateInterface
$form_state
)
{
foreach
(
$form_state
[
'values'
]
as
$variable
=>
$value
)
{
if
(
\
Drupal
::
config
(
'xmlsitemap.settings'
)
->
get
(
$variable
)
==
NULL
)
{
$stored_value
=
'not_a_variable'
;
...
...
@@ -1231,7 +1231,7 @@ function xmlsitemap_add_form_link_options(array &$form, $entity, $bundle, $id) {
/**
* Submit callback for the entity form to save.
*/
function
xmlsitemap_process_form_link_options
(
array
$form
,
FormStateInterface
$form_state
)
{
function
xmlsitemap_process_form_link_options
(
array
$form
,
FormStateInterface
$form_state
)
{
$link
=
&
$form_state
[
'values'
][
'xmlsitemap'
];
$fields
=
array
(
'status'
=>
XMLSITEMAP_STATUS_DEFAULT
,
'priority'
=>
XMLSITEMAP_PRIORITY_DEFAULT
);
...
...
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