forked from CiviWare/org.agbu.annualgrantbudgets
Added install code, navigation menu and DAO file
This commit is contained in:
@ -6,10 +6,10 @@
|
||||
* The ExtensionUtil class provides small stubs for accessing resources of this
|
||||
* extension.
|
||||
*/
|
||||
class CRM_Annualgrantbudgets_ExtensionUtil {
|
||||
class CRM_AnnualGrantBudgets_ExtensionUtil {
|
||||
const SHORT_NAME = "annualgrantbudgets";
|
||||
const LONG_NAME = "org.agbu.annualgrantbudgets";
|
||||
const CLASS_PREFIX = "CRM_Annualgrantbudgets";
|
||||
const CLASS_PREFIX = "CRM_AnnualGrantBudgets";
|
||||
|
||||
/**
|
||||
* Translate a string using the extension's domain.
|
||||
@ -77,7 +77,7 @@ class CRM_Annualgrantbudgets_ExtensionUtil {
|
||||
|
||||
}
|
||||
|
||||
use CRM_Annualgrantbudgets_ExtensionUtil as E;
|
||||
use CRM_AnnualGrantBudgets_ExtensionUtil as E;
|
||||
|
||||
/**
|
||||
* (Delegated) Implements hook_civicrm_config().
|
||||
@ -205,14 +205,14 @@ function _annualgrantbudgets_civix_civicrm_upgrade($op, CRM_Queue_Queue $queue =
|
||||
}
|
||||
|
||||
/**
|
||||
* @return CRM_Annualgrantbudgets_Upgrader
|
||||
* @return CRM_AnnualGrantBudgets_Upgrader
|
||||
*/
|
||||
function _annualgrantbudgets_civix_upgrader() {
|
||||
if (!file_exists(__DIR__ . '/CRM/Annualgrantbudgets/Upgrader.php')) {
|
||||
if (!file_exists(__DIR__ . '/CRM/AnnualGrantBudgets/Upgrader.php')) {
|
||||
return NULL;
|
||||
}
|
||||
else {
|
||||
return CRM_Annualgrantbudgets_Upgrader_Base::instance();
|
||||
return CRM_AnnualGrantBudgets_Upgrader_Base::instance();
|
||||
}
|
||||
}
|
||||
|
||||
@ -455,5 +455,6 @@ function _annualgrantbudgets_civix_civicrm_alterSettingsFolders(&$metaDataFolder
|
||||
*/
|
||||
|
||||
function _annualgrantbudgets_civix_civicrm_entityTypes(&$entityTypes) {
|
||||
$entityTypes = array_merge($entityTypes, []);
|
||||
$entityTypes = array_merge($entityTypes, array (
|
||||
));
|
||||
}
|
||||
|
Reference in New Issue
Block a user