forked from CiviWare/org.agbu.annualgrantbudgets
added a way to store new budget for financial type
This commit is contained in:
@ -201,3 +201,15 @@ function annualgrantbudgets_civicrm_navigationMenu(&$menu) {
|
||||
]);
|
||||
_annualgrantbudgets_civix_navigationMenu($menu);
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_civicrm_apiWrappers().
|
||||
*
|
||||
* @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_apiWrappers
|
||||
*
|
||||
*/
|
||||
function annualgrantbudgets_civicrm_apiWrappers(&$wrappers, $apiRequest) {
|
||||
if (strtolower($apiRequest['entity']) == 'grantbudget' && $apiRequest['action'] == 'create') {
|
||||
$wrappers[] = new CRM_AnnualGrantBudgets_APIWrapper();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user