-
Notifications
You must be signed in to change notification settings - Fork 0
/
uc_crowdfunding.api.php
41 lines (37 loc) · 874 Bytes
/
uc_crowdfunding.api.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
/**
* @file
* Documents hooks provided by Ubercart Crowdfunding Feature module.
*
* By Arlina E. Rhoton ("Arlina", http://drupal.org/user/1055344)
*/
/**
* @addtogroup hooks
* @{
*/
/**
* Alter the crowdfunding properties added to a node.
*
* This hook is used to alter the crowdfunding properties (sold, gross, income)
* added to a node object.
*
* @param int $nid
* Node ID.
*
* @param object $report
* An object with the following properties:
* - nid: Node ID.
* - sold: The quantity this product has sold.
* - gross: The gross income this product has generated.
* - revenue: The total revenue this product has generated.
*
* @return object
* The $report object.
*/
function hook_uc_cf_product_report($nid, &$report) {
// Optional alterations to $report.
return $report;
}
/**
* @} End of "addtogroup hooks".
*/