Révision 32700c57
Ajouté par Assos Assos il y a environ 5 ans
drupal7/sites/all/modules/ldap/ldap_authorization/ldap_authorization_drupal_role/ldap_authorization_drupal_role.module | ||
---|---|---|
10 | 10 |
*/ |
11 | 11 |
function ldap_authorization_drupal_role_ldap_authorization_consumer() { |
12 | 12 |
|
13 |
$types['drupal_role'] = array(
|
|
13 |
$types['drupal_role'] = [
|
|
14 | 14 |
'consumer_name' => t('drupal role'), |
15 | 15 |
'consumer_name_plural' => t('drupal roles'), |
16 | 16 |
'consumer_short_name' => t('role'), |
... | ... | |
30 | 30 |
<code>students|students<br/> |
31 | 31 |
faculty|administrator |
32 | 32 |
</code><br/>', |
33 |
);
|
|
33 |
];
|
|
34 | 34 |
|
35 | 35 |
return $types; |
36 | 36 |
} |
... | ... | |
40 | 40 |
*/ |
41 | 41 |
function ldap_authorization_drupal_role_ldap_user_attrs_list_alter(&$available_user_attrs, &$params) { |
42 | 42 |
|
43 |
$available_user_attrs['[property.role]'] = array(
|
|
43 |
$available_user_attrs['[property.role]'] = [
|
|
44 | 44 |
'name' => 'Property: Drupal Roles', |
45 | 45 |
'source' => 'depends on configuration', |
46 | 46 |
'configurable_to_drupal' => 0, |
... | ... | |
49 | 49 |
'direction' => LDAP_USER_PROV_DIRECTION_TO_DRUPAL_USER, |
50 | 50 |
'enabled' => TRUE, |
51 | 51 |
'config_module' => 'ldap_authorization_drupal_role', |
52 |
'prov_events' => array(LDAP_USER_EVENT_SYNCH_TO_DRUPAL_USER, LDAP_USER_EVENT_CREATE_DRUPAL_USER),
|
|
52 |
'prov_events' => [LDAP_USER_EVENT_SYNCH_TO_DRUPAL_USER, LDAP_USER_EVENT_CREATE_DRUPAL_USER],
|
|
53 | 53 |
'prov_module' => 'ldap_authorization_drupal_role', |
54 |
);
|
|
54 |
];
|
|
55 | 55 |
|
56 | 56 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules