diff --git a/fillpdf.module b/fillpdf.module index 6be29c6a1e54c302629a46359783434737b32b61..f85ccd602c0c603f036cc15a56802b42cfd5fd89 100644 --- a/fillpdf.module +++ b/fillpdf.module @@ -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);