Skip to content
Snippets Groups Projects
Commit baf0aa4f authored by Liam Morland's avatar Liam Morland
Browse files

Coding standards

parent 0b854700
No related branches found
Tags 7.x-1.13 7.x-1.13-rc1
Loading
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment