Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fillpdf
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
drupal.org
fillpdf
Commits
103c0adf
Commit
103c0adf
authored
5 years ago
by
pancho
Committed by
Liam Morland
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue #3040903 by Pancho, Liam Morland: Create fillpdf_template_scheme()
parent
2c5c88e0
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fillpdf.module
+12
-0
12 additions, 0 deletions
fillpdf.module
with
12 additions
and
0 deletions
fillpdf.module
+
12
−
0
View file @
103c0adf
...
@@ -2070,6 +2070,18 @@ function fillpdf_scheme_options() {
...
@@ -2070,6 +2070,18 @@ function fillpdf_scheme_options() {
return
$options
;
return
$options
;
}
}
/**
* Returns the configured template scheme for FillPDF.
*
* Template files are less sensitive, so if the configured FillPDF template
* scheme is unavailable, we may fall back to the system's file default scheme.
*/
function
fillpdf_template_scheme
()
{
$template_scheme
=
variable_get
(
'fillpdf_scheme'
);
$scheme_options
=
fillpdf_scheme_options
();
return
$template_scheme
&&
isset
(
$scheme_options
[
$template_scheme
])
?
$template_scheme
:
variable_get
(
'file_default_scheme'
,
'public'
);
}
/**
/**
* Returns the default scheme for PDF files populated by FillPDF.
* Returns the default scheme for PDF files populated by FillPDF.
*
*
...
...
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