You are here

function fillpdf_rules_event_info in FillPDF 7

Same name and namespace in other branches
  1. 7.2 fillpdf.rules.inc \fillpdf_rules_event_info()

Implements hook_rules_event_info().

@todo Define the "FillPDF has filled the PDF" event @todo Define the following events:

  • FillPDF is about to prepare PDF-filling data (fillpdf_merge_pre_merge)
  • FillPDF is ready to fill the PDF (fillpdf_merge_fields_alter)

Related topics

File

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

Code

function fillpdf_rules_event_info() {
  $defaults = array(
    'group' => t('FillPDF'),
    'module' => 'fillpdf',
  );
  return array(
    'fillpdf_merge_pre_handle' => $defaults + array(
      'label' => t('Filled PDF is about to be handled'),
      'variables' => array(
        'fillpdf' => array(
          'type' => 'fillpdf',
          'label' => 'FillPDF metadata',
        ),
      ),
    ),
  );
}