kewljuice/be.ctrl.uit

There is no license information available for the latest version (1.1) of this package.

Everything functionally related to migration UiT events to CiviCRM.

Installs: 995

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:civicrm-extension

1.1 2021-06-02 15:27 UTC

This package is auto-updated.

Last update: 2024-04-29 04:20:19 UTC


README

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 . '<br>');
  print("entity: " . $objectName . '<br>');
  print("entity id: " . $id . '<br>');
  print("object: " . print_r($params, TRUE) . '<br>');
  
}