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
0154c262
Commit
0154c262
authored
Jul 31, 2014
by
andrei.dincu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2249723
by andrei.dincu: Replace define statements with const in xmlsitemap.module
parent
76b594b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
14 deletions
+16
-14
xmlsitemap.module
xmlsitemap.module
+16
-14
No files found.
xmlsitemap.module
View file @
0154c262
...
...
@@ -25,44 +25,46 @@ use Symfony\Component\HttpFoundation\Response;
/**
* The maximum number of links in one sitemap chunk file.
*/
define
(
'XMLSITEMAP_MAX_SITEMAP_LINKS'
,
50000
);
const
XMLSITEMAP_MAX_SITEMAP_LINKS
=
50000
;
/**
* The maximum filesize of a sitemap chunk file.
*/
define
(
'XMLSITEMAP_MAX_SITEMAP_FILESIZE'
,
10485760
)
;
const
XMLSITEMAP_MAX_SITEMAP_FILESIZE
=
10485760
;
define
(
'XMLSITEMAP_FREQUENCY_YEARLY'
,
31449600
);
// 60 * 60 * 24 * 7 * 52
define
(
'XMLSITEMAP_FREQUENCY_MONTHLY'
,
2419200
);
// 60 * 60 * 24 * 7 * 4
define
(
'XMLSITEMAP_FREQUENCY_WEEKLY'
,
604800
);
// 60 * 60 * 24 * 7
define
(
'XMLSITEMAP_FREQUENCY_DAILY'
,
86400
);
// 60 * 60 * 24
define
(
'XMLSITEMAP_FREQUENCY_HOURLY'
,
3600
);
// 60 * 60
define
(
'XMLSITEMAP_FREQUENCY_ALWAYS'
,
60
);
/**
* Xmlsitemap Frequencies
*/
const
XMLSITEMAP_FREQUENCY_YEARLY
=
31449600
;
// 60 * 60 * 24 * 7 * 52
const
XMLSITEMAP_FREQUENCY_MONTHLY
=
2419200
;
// 60 * 60 * 24 * 7 * 4
const
XMLSITEMAP_FREQUENCY_WEEKLY
=
604800
;
// 60 * 60 * 24 * 7
const
XMLSITEMAP_FREQUENCY_DAILY
=
86400
;
// 60 * 60 * 24
const
XMLSITEMAP_FREQUENCY_HOURLY
=
3600
;
// 60 * 60
const
XMLSITEMAP_FREQUENCY_ALWAYS
=
60
;
/**
* Short lastmod timestamp format.
*/
define
(
'XMLSITEMAP_LASTMOD_SHORT'
,
'Y-m-d'
)
;
const
XMLSITEMAP_LASTMOD_SHORT
=
'Y-m-d'
;
/**
* Medium lastmod timestamp format.
*/
define
(
'XMLSITEMAP_LASTMOD_MEDIUM'
,
'Y-m-d\TH:i\Z'
)
;
const
XMLSITEMAP_LASTMOD_MEDIUM
=
'Y-m-d\TH:i\Z'
;
/**
* Long lastmod timestamp format.
*/
define
(
'XMLSITEMAP_LASTMOD_LONG'
,
'c'
)
;
const
XMLSITEMAP_LASTMOD_LONG
=
'c'
;
/**
* The default inclusion status for link types in the sitemaps.
*/
define
(
'XMLSITEMAP_STATUS_DEFAULT'
,
0
)
;
const
XMLSITEMAP_STATUS_DEFAULT
=
0
;
/**
* The default priority for link types in the sitemaps.
*/
define
(
'XMLSITEMAP_PRIORITY_DEFAULT'
,
0.5
)
;
const
XMLSITEMAP_PRIORITY_DEFAULT
=
0.5
;
/**
* Implements hook_hook_info().
...
...
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