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
baf0aa4f
Commit
baf0aa4f
authored
6 years ago
by
Liam Morland
Browse files
Options
Downloads
Patches
Plain Diff
Coding standards
parent
0b854700
No related branches found
Branches containing commit
Tags
7.x-1.13
7.x-1.13-rc1
Tags containing commit
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fillpdf.module
+11
-3
11 additions, 3 deletions
fillpdf.module
with
11 additions
and
3 deletions
fillpdf.module
+
11
−
3
View file @
baf0aa4f
...
...
@@ -1837,8 +1837,13 @@ function fillpdf_pdftk_path() {
}
/**
* Check if we can reach the FillPDF LocalService instance configured in the
* settings.
* Check if we can reach the FillPDF LocalService instance.
*
* This is configured in the settings.
*
* @return bool
* TRUE if fillpdf_local_service_endpoint returns no error and a status of
* 200. FALSE otherwise.
*/
function
fillpdf_localservice_check
()
{
$localservice_endpoint
=
variable_get
(
'fillpdf_local_service_endpoint'
);
...
...
@@ -1879,7 +1884,10 @@ function fillpdf_default_scheme() {
*/
function
fillpdf_file_usage_add
(
$file
,
$fillpdf_object
)
{
$fcid
=
db_insert
(
'fillpdf_file_context'
)
->
fields
(
array
(
'context'
=>
fillpdf_context_to_link
(
$fillpdf_object
->
info
->
fid
,
$fillpdf_object
->
context
,
$fillpdf_object
->
options
[
'sample'
]),
'fid'
=>
$fillpdf_object
->
info
->
fid
))
->
fields
(
array
(
'context'
=>
fillpdf_context_to_link
(
$fillpdf_object
->
info
->
fid
,
$fillpdf_object
->
context
,
$fillpdf_object
->
options
[
'sample'
]),
'fid'
=>
$fillpdf_object
->
info
->
fid
,
))
->
execute
();
file_usage_add
(
$file
,
'fillpdf'
,
'fillpdf_file'
,
$fcid
);
...
...
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