Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gdpr-3328229
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
gdpr-3328229
Commits
34822140
Commit
34822140
authored
6 years ago
by
Levente Besenyei
Browse files
Options
Downloads
Patches
Plain Diff
Code cleanup to make it compliant to Drupal Coding Standards
parent
481d4865
Branches
8.x-3.x
Branches containing commit
Tags
8.x-3.5
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
gdpr.install
+8
-2
8 additions, 2 deletions
gdpr.install
gdpr.module
+0
-5
0 additions, 5 deletions
gdpr.module
gdpr.test
+1
-1
1 addition, 1 deletion
gdpr.test
with
9 additions
and
8 deletions
gdpr.install
+
8
−
2
View file @
34822140
<?php
/**
* @file
* Install file for the GDPR module.
*/
/**
* Implements hook_requirements().
*/
function
gdpr_requirements
(
$phase
)
{
$requirements
=
[];
$t
=
get_t
();
if
(
$phase
===
'runtime'
&&
$definitions
=
checklistapi_get_checklist_info
())
{
$id
=
'gdpr_checklist'
;
...
...
@@ -12,8 +18,8 @@ function gdpr_requirements($phase) {
$percent
=
round
(
$checklist
->
getPercentComplete
());
$requirements
[
'gdpr_status'
]
=
[
'title'
=>
t
(
'GDPR Preparation'
),
'value'
=>
t
(
'Self assessment Checklist: <a href="@url">@percent% done</a>.'
,
[
'title'
=>
$
t
(
'GDPR Preparation'
),
'value'
=>
$
t
(
'Self assessment Checklist: <a href="@url">@percent% done</a>.'
,
[
'@percent'
=>
$percent
,
'@url'
=>
'/admin/config/gdpr/checklist'
,
]),
...
...
This diff is collapsed.
Click to expand it.
gdpr.module
+
0
−
5
View file @
34822140
...
...
@@ -50,9 +50,6 @@ function gdpr_checklistapi_checklist_info() {
$content
=
gdpr_search_content
();
$is_published
=
FALSE
;
$in_menu
=
FALSE
;
if
(
!
empty
(
$content
))
{
$description
=
[
'#theme'
=>
'item_list'
,
...
...
@@ -75,7 +72,6 @@ function gdpr_checklistapi_checklist_info() {
'#suffix'
=>
'</span>'
,
'#markup'
=>
t
(
'published'
),
];
$is_published
=
TRUE
;
}
else
{
$status
=
[
...
...
@@ -100,7 +96,6 @@ function gdpr_checklistapi_checklist_info() {
$menu_list
=
[];
if
(
!
empty
(
$mlids
))
{
$in_menu
=
TRUE
;
foreach
(
$mlids
as
$mlid
)
{
$link
=
menu_link_load
(
$mlid
);
$menu_list
[]
=
$link
[
'menu_name'
];
...
...
This diff is collapsed.
Click to expand it.
gdpr.test
+
1
−
1
View file @
34822140
...
...
@@ -8,7 +8,7 @@
/**
* Tests users' data collection pages.
*/
class
UserCollectedDataPageTest
extends
DrupalWebTestCase
{
class
Gdpr
UserCollectedDataPageTest
extends
DrupalWebTestCase
{
/**
* The user whose collected data to access.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment