You are here

function fillpdf_rules_action_save_to_file in FillPDF 7.2

Same name and namespace in other branches
  1. 7 fillpdf.rules.inc \fillpdf_rules_action_save_to_file()

Save the PDF to a file and return the file path.

1 string reference to 'fillpdf_rules_action_save_to_file'
fillpdf_rules_action_info in ./fillpdf.rules.inc
Implements hook_rules_action_info(). @todo: Define the following actions:

File

./fillpdf.rules.inc, line 198
fillpdf.rules.inc

Code

function fillpdf_rules_action_save_to_file($fillpdf) {
  $saved_file_path = fillpdf_save_to_file($fillpdf->info, $fillpdf->data, $fillpdf->token_objects, _fillpdf_process_filename($fillpdf->info->title, $fillpdf->token_objects), FALSE);
  return array(
    'fillpdf_saved_file_path' => $saved_file_path,
  );
}