Skip to content

Instantly share code, notes, and snippets.

jptillman

Block or report user

Report or block jptillman

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jptillman
jptillman / civipicsync.module
Last active Jun 21, 2018
Drupal8 module for sync'ing profile pic with CiviCRM contact pic
View civipicsync.module
<?php
use Drupal\Core\Routing\RouteMatchInterface;
function civipicsync_get_user_picture_path($account) {
$pic = $account->user_picture;
$path = NULL;
if (!$pic->isEmpty()) {
You can’t perform that action at this time.