implement TwingleShop integration
This commit is contained in:
parent
ea46e6a747
commit
8cfa270dff
60 changed files with 5200 additions and 106 deletions
|
@ -198,3 +198,25 @@ function _twingle_civix_fixNavigationMenuItems(&$nodes, &$maxNavID, $parentID) {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* (Delegated) Implements hook_civicrm_entityTypes().
|
||||
*
|
||||
* Find any *.entityType.php files, merge their content, and return.
|
||||
*
|
||||
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_entityTypes
|
||||
*/
|
||||
function _twingle_civix_civicrm_entityTypes(&$entityTypes) {
|
||||
$entityTypes = array_merge($entityTypes, [
|
||||
'Civi\Twingle\Shop\DAO\TwingleProduct' => [
|
||||
'name' => 'TwingleProduct',
|
||||
'class' => 'Civi\Twingle\Shop\DAO\TwingleProduct',
|
||||
'table' => 'civicrm_twingle_product',
|
||||
],
|
||||
'Civi\Twingle\Shop\DAO\TwingleShop' => [
|
||||
'name' => 'TwingleShop',
|
||||
'class' => 'Civi\Twingle\Shop\DAO\TwingleShop',
|
||||
'table' => 'civicrm_twingle_shop',
|
||||
],
|
||||
]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue