Skip to content

Commit

Permalink
8.2.4
Browse files Browse the repository at this point in the history
* Revert su_display name_later hook. (#124)
  • Loading branch information
pookmish authored Dec 9, 2021
2 parents ac61540 + 2d39627 commit 86859f2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 12 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# Stanford SSP


8.x-2.4
--------------------------------------------------------------------------------
_Release Date: 2021-12-08_

- Revert su_display name_later hook. (#124)


8.x-2.3
--------------------------------------------------------------------------------
_Release Date: 2021-11-19_
Expand Down
2 changes: 1 addition & 1 deletion stanford_ssp.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Configures SimpleSAML PHP auth to work in Stanford web environment
core: 8.x
core_version_requirement: ^8 || ^9
type: module
version: 8.x-2.3
version: 8.x-2.4
package: Stanford
dependencies:
- simplesamlphp_auth:simplesamlphp_auth
10 changes: 0 additions & 10 deletions stanford_ssp.module
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

use Drupal\Core\Cache\RefinableCacheableDependencyInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Session\AccountInterface;
use Drupal\Core\Url;
use Drupal\stanford_ssp\Form\AuthorizationsForm;
use Drupal\user\UserInterface;
Expand Down Expand Up @@ -165,12 +164,3 @@ function stanford_ssp_simplesamlphp_auth_user_attributes(UserInterface $account,
}
return FALSE;
}

/**
* Implements hook_user_format_name_alter().
*/
function stanford_ssp_user_format_name_alter(&$name, AccountInterface $account) {
if ($account instanceof UserInterface && $account->hasField('su_display_name')) {
$name = $account->get('su_display_name')->getString() ?? $name;
}
}
2 changes: 1 addition & 1 deletion tests/modules/stanford_ssp_test/stanford_ssp_test.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ type: module
core_version_requirement: ^8.8 || ^9
hidden: true
package: Testing
version: 8.x-2.3
version: 8.x-2.4

0 comments on commit 86859f2

Please sign in to comment.