Skip to content

Commit

Permalink
Removed WAYF requirement (move to ding_wayf)
Browse files Browse the repository at this point in the history
  • Loading branch information
cableman committed Apr 29, 2014
1 parent 1612421 commit 1577406
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions alma.install
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<?php
/**
* @file
* Handles requirements, installation and uninstall for the module.
*/

/**
* Implements hook_requirements().
Expand Down Expand Up @@ -27,16 +31,6 @@ function alma_requirements($phase) {
$requirements['alma']['description'] = $t('Alma is not properly configured, please visit <a href="@link">the settings page</a>.', array('@link' => url('admin/config/ding/provider/alma')));
$requirements['alma']['severity'] = REQUIREMENT_ERROR;
}
$requirements['alma_wayf'] = array(
'title' => $t('Alma WAYF'),
'value' => $t('Alma WAYF configured'),
'severity' => REQUIREMENT_OK,
);
if (!variable_get('wayf_hash', FALSE)) {
$requirements['alma']['value'] = $t('Alma WAYF not configured');
$requirements['alma']['description'] = $t('Alma WAYF is not properly configured, you need to set $conf[\'wayf_hash\'] in setttings.php.');
$requirements['alma']['severity'] = REQUIREMENT_ERROR;
}
}

return $requirements;
Expand Down

0 comments on commit 1577406

Please sign in to comment.