au.nickperkins.contactimagesync

Extension to assist with syncing CiviCRM contact images to CMS user profiles. The extension adds an APIv3 endpoint and a CiviRules action.

The extension currently only supports Drupal 8+.

The extension is licensed under AGPL-3.0.

Requirements

  • PHP v7.4+
  • CiviCRM 5.61
  • CiviRules (tested with 2.51)
  • Drupal 8+

Installation (Web UI)

Learn more about installing CiviCRM extensions in the CiviCRM Sysadmin Guide.

Installation (CLI, Zip)

Sysadmins and developers may download the .zip file for this extension and install it with the command-line tool cv.

cd <extension-dir>
cv dl au.nickperkins.contactimagesync@https://github.com/nickperkins/au.nickperkins.contactimagesync/archive/main.zip

Installation (CLI, Git)

Sysadmins and developers may clone the Git repo for this extension and install it with the command-line tool cv.

git clone https://github.com/FIXME/au.nickperkins.contactimagesync.git
cv en contactimagesync

Getting Started

Once enabled, this extension adds a new Civirule action named "Sync Contact Image to CMS".

Screenshot of the Add Action to CiviRule screen. The "Select Action" dropdown box shows the "Sync Contact Image to CMS" action

It is possible to manually sync a contact image using the APIv3. Provide the CiviCRM contact ID to run the sync for.

Screenshot of the APIv3 Explorer showing the Entity: ContactImage and Action: sync.