Commit 205ea219 authored by DaveD's avatar DaveD
Browse files

clarify the return value

parent daae63f8
......@@ -311,6 +311,10 @@ function _cdntaxreceipts_writePage(&$f, $pdf_variables, $receipt) {
// If there's a custom function to write the page, invoke it.
// Otherwise, provide a default receipt format.
//
// return array(TRUE) from the hook if you are completely replacing the
// default implementation, otherwise return anything that isn't an array
// if you want the default implementation to still write after yours.
//
// Note: if hook_cdntaxreceipts_writeReceipt is implemented in more than one active
// module/extension, the receipt will get written into the PDF file multiple
// times. It's one peril of using the hook system here. Implementers will need to catch
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment