https://github.com/kewljuice/be.ctrl.uit
Everything functionally related to migration UiT events to CiviCRM
https://github.com/kewljuice/be.ctrl.uit
civicrm civicrm-extensions
Last synced: about 2 months ago
JSON representation
Everything functionally related to migration UiT events to CiviCRM
- Host: GitHub
- URL: https://github.com/kewljuice/be.ctrl.uit
- Owner: kewljuice
- License: other
- Created: 2018-06-25T13:47:36.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-06-02T15:28:30.000Z (almost 4 years ago)
- Last Synced: 2025-03-02T20:07:25.885Z (3 months ago)
- Topics: civicrm, civicrm-extensions
- Language: PHP
- Homepage:
- Size: 67.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# be.ctrl.uit
## Introduction
CiviCRM UiT extension: Everything functionally related to UiT migration.## Installation
- You can directly clone to your CiviCRM extension directory using
```$ git clone https://github.com/kewljuice/be.ctrl.uit.git```- You can also download a zip file, and extract in your extension directory
```$ git clone https://github.com/kewljuice/be.ctrl.uit/archive/master.zip```- Configure CiviCRM Extensions Directory which can be done from
```"Administer -> System Settings -> Directories".```- Configure Extension Resource URL which can be done from
```"Administer -> System Settings -> Resource URLs".```- The next step is enabling the extension which can be done from
```"Administer -> System Settings -> Manage CiviCRM Extensions".```## Requirements
- PHP v7.0+
- CiviCRM 5.0## Configuration
- Manage settings: **yoursite.org/civicrm/uit/settings**.
- Manage config: **yoursite.org/civicrm/uit/config**.## Endpoints
### UitMigrate: status
```
$result = civicrm_api3('UitMigrate', 'status', array(
'UitType' => "events",
));
```### UitMigrate: import
```
$result = civicrm_api3('UitMigrate', 'import', array(
'UitType' => "events",
));
```## Custom hook
```
/**
* Implements hook_civicrm_uit().
*/
function uit_civicrm_uit($op, $objectName, $id, &$params) {
// https://forum.civicrm.org/index.php%3Ftopic=29999.0.html
print("action: " . $op . '
');
print("entity: " . $objectName . '
');
print("entity id: " . $id . '
');
print("object: " . print_r($params, TRUE) . '
');
}
```