Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simplenews-3252444
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
simplenews-3252444
Commits
797bc46c
Commit
797bc46c
authored
16 years ago
by
Erik Stielstra
Browse files
Options
Downloads
Patches
Plain Diff
Added check_plain() to various admin pages and subscriptions page.
parent
976776eb
No related branches found
Branches containing commit
Tags
6.1.0
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
simplenews.module
+4
-4
4 additions, 4 deletions
simplenews.module
with
4 additions
and
4 deletions
simplenews.module
+
4
−
4
View file @
797bc46c
...
...
@@ -964,7 +964,7 @@ function _simplenews_subscription_manager_form($subscription) {
$form
[
'#base'
]
=
'simplenews_subscription_manager_form'
;
$options
=
array
();
foreach
(
taxonomy_get_tree
(
variable_get
(
'simplenews_vid'
,
''
))
as
$newsletter
)
{
$options
[
$newsletter
->
tid
]
=
$newsletter
->
name
;
$options
[
$newsletter
->
tid
]
=
check_plain
(
$newsletter
->
name
)
;
}
$form
[
'subscriptions'
]
=
array
(
'#type'
=>
'fieldset'
,
'#description'
=>
t
(
'Select the newsletter(s) to which you want to subscribe or unsubscribe.'
));
$form
[
'subscriptions'
][
'newsletters'
]
=
array
(
'#type'
=>
'checkboxes'
,
...
...
@@ -2081,7 +2081,7 @@ function simplenews_subscription_list_add() {
);
$newsletters
=
array
();
foreach
(
taxonomy_get_tree
(
variable_get
(
'simplenews_vid'
,
''
))
as
$newsletter
)
{
$newsletters
[
$newsletter
->
tid
]
=
$newsletter
->
name
;
$newsletters
[
$newsletter
->
tid
]
=
check_plain
(
$newsletter
->
name
)
;
}
$form
[
'newsletters'
]
=
array
(
'#type'
=>
'fieldset'
,
...
...
@@ -2174,7 +2174,7 @@ function simplenews_subscription_list_export() {
foreach
(
$tree
as
$newsletter
)
{
$form
[
'simplenews_newsletter'
][
'tid_'
.
$newsletter
->
tid
]
=
array
(
'#type'
=>
'checkbox'
,
'#title'
=>
$newsletter
->
name
,
'#title'
=>
check_plain
(
$newsletter
->
name
)
,
'#return_value'
=>
1
,
);
}
...
...
@@ -2409,7 +2409,7 @@ function simplenews_types_overview() {
$header
=
array
(
t
(
'Newsletter name'
),
t
(
'Operations'
));
foreach
(
taxonomy_get_tree
(
variable_get
(
'simplenews_vid'
,
''
))
as
$term
)
{
$rows
[]
=
array
(
$term
->
name
,
l
(
t
(
'edit newsletter'
),
'admin/content/newsletters/types/edit/'
.
$term
->
tid
));
$rows
[]
=
array
(
check_plain
(
$term
->
name
)
,
l
(
t
(
'edit newsletter'
),
'admin/content/newsletters/types/edit/'
.
$term
->
tid
));
}
if
(
count
(
$rows
)
==
0
)
{
...
...
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