Skip to content
Snippets Groups Projects
Select Git revision
  • 2.0.x default
  • 8.x-1.x
  • issue/externalauth-3211814-3211814-views
  • 2.0.8
  • 2.0.7
  • 2.0.6
  • 2.0.5
  • 2.0.4
  • 2.0.3
  • 2.0.2
  • 2.0.1
  • 2.0.0
  • 8.x-1.4
  • 8.x-1.3
  • 8.x-1.2
  • 8.x-1.1
  • 8.x-1.0
  • 8.x-1.0-alpha4
  • 8.x-1.0-alpha3
  • 8.x-1.0-alpha2
  • 8.x-1.0-alpha1
21 results

externalauth.module

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    externalauth.module 797 B
    <?php
    
    /**
     * @file
     * Contains externalauth.module.
     */
    
    use Drupal\Core\Routing\RouteMatchInterface;
    
    /**
     * Implements hook_help().
     */
    function externalauth_help($route_name, RouteMatchInterface $route_match) {
      switch ($route_name) {
        // Main module help for the authmap module.
        case 'help.page.externalauth':
          $output = '';
          $output .= '<h3>' . t('About') . '</h3>';
          $output .= '<p>' . t('Authenticates users using an external site / service and stores identification details.') . '</p>';
          return $output;
    
        default:
      }
    }
    
    /**
     * Implements hook_user_delete().
     */
    function externalauth_user_delete($account) {
      // Delete authmap entries when a user gets deleted.
      $authmap = \Drupal::service('externalauth.authmap');
      $authmap->delete($account->id());
    }