You are here

function fillpdf_rules_action_merge_node in FillPDF 7

Populates a loaded FillPDF configuration's PDF with node data.

Related topics

1 string reference to 'fillpdf_rules_action_merge_node'
fillpdf_rules_action_info in ./fillpdf.rules.inc
Implements hook_rules_action_info().

File

./fillpdf.rules.inc, line 222
Rules integration.

Code

function fillpdf_rules_action_merge_node($fillpdf, $node_nid) {
  $skip_access_check = FALSE;
  $flatten = TRUE;
  $node_nid = array(
    $node_nid,
  );

  // @todo Parameterize $skip_access_check and $flatten in Rules.
  $fillpdf = fillpdf_merge_pdf($fillpdf->info->fid, $node_nid, NULL, NULL, FALSE, $skip_access_check, $flatten, FALSE);
  return array(
    'fillpdf' => $fillpdf,
  );
}