<?php

/**
 * Implements hook_install().
 *
 * Creates profile-images directory under site/default/files.
 */
function groups_oauth2_picture_install() {
  $destination = 'public://profile-images';
  if (!file_prepare_directory($destination, FILE_CREATE_DIRECTORY)) {
    throw new Exception("Unable to create directory $destination.");
  }
}