You are here

function fillpdf_file_context_load in FillPDF 7

Load a file context object.

Parameters

int $fcid: The fcid of the context object to load.

Return value

object|bool Returns the decoded context object or FALSE if the fcid cannot be found.

1 call to fillpdf_file_context_load()
fillpdf_file_download in ./fillpdf.module
Implements hook_file_download().

File

./fillpdf.module, line 2232

Code

function fillpdf_file_context_load($fcid) {
  $context = db_query('SELECT context
    FROM {fillpdf_file_context}
    WHERE fcid = :fcid', array(
    ':fcid' => $fcid,
  ))
    ->fetchField();
  return $context;
}