You are here

social_auth_linkedin.install in Open Social 8.8

Install and uninstall functions for the LinkedIn Login module.

File

modules/custom/social_auth_linkedin/social_auth_linkedin.install
View source
<?php

/**
 * @file
 * Install and uninstall functions for the LinkedIn Login module.
 */

/**
 * Implements hook_requirements().
 */
function social_auth_linkedin_requirements($phase) {
  $requirements = [];
  if ($phase == 'install') {
    if (!class_exists('\\LinkedIn\\Client', TRUE)) {
      $requirements['social_auth_linkedin'] = [
        'description' => t('Social Auth LinkedIn requires LinkedIn PHP Library. Make sure the library is installed via Composer.'),
        'severity' => REQUIREMENT_ERROR,
      ];
    }
  }
  return $requirements;
}

Functions