Révision 59ae487e
Ajouté par Assos Assos il y a presque 7 ans
drupal7/sites/all/modules/ldap/ldap_user/ldap_user.module | ||
---|---|---|
965 | 965 |
*/ |
966 | 966 |
|
967 | 967 |
function ldap_user_user_update(&$user_edit, $account, $category) { |
968 |
//debug("ldap_user_user_update, category=$category"); debug($user_edit); debug($account); // ldap_user_user_insert, category='. $category . 'account->status = ' . $account->status); |
|
969 | 968 |
if (ldap_user_ldap_exclude($account, $user_edit)) { |
970 | 969 |
return; |
971 | 970 |
} |
... | ... | |
1011 | 1010 |
*/ |
1012 | 1011 |
|
1013 | 1012 |
function ldap_user_user_presave(&$user_edit, $account, $category) { |
1014 |
//debug("ldap_user_user_presave, category=$category"); debug($user_edit); debug($account); // ldap_user_user_insert, category='. $category . 'account->status = ' . $account->status); |
|
1015 | 1013 |
|
1016 | 1014 |
if (ldap_user_ldap_exclude($account, $user_edit)) { |
1017 | 1015 |
return; |
... | ... | |
1060 | 1058 |
} |
1061 | 1059 |
} |
1062 | 1060 |
|
1063 |
|
|
1064 |
|
|
1065 |
/** |
|
1066 |
* @return default value for field user->ldap_user_provisioned_sid |
|
1067 |
*/ |
|
1068 |
function ldap_user_provisioned_sid_default($entity_type, $entity, $field, $instance, $langcode) { |
|
1069 |
return NULL; |
|
1070 |
} |
|
1071 |
|
|
1072 |
/** |
|
1073 |
* @return default value for field user->ldap_user_provisioned_sid |
|
1074 |
*/ |
|
1075 |
function ldap_user_puid_default($entity_type, $entity, $field, $instance, $langcode) { |
|
1076 |
return NULL; |
|
1077 |
} |
|
1078 |
/** |
|
1079 |
* @return default value for field user->ldap_user_puid |
|
1080 |
*/ |
|
1081 |
function ldap_user_puid_property_default($entity_type, $entity, $field, $instance, $langcode) { |
|
1082 |
return NULL; |
|
1083 |
} |
|
1084 |
/** |
|
1085 |
* @return default value for field user->ldap_user_dn |
|
1086 |
*/ |
|
1087 |
function ldap_user_dn_default($entity_type, $entity, $field, $instance, $langcode) { |
|
1088 |
return NULL; |
|
1089 |
} |
|
1090 |
|
|
1091 | 1061 |
/** |
1092 | 1062 |
* Implements hook_field_widget_info(). |
1093 | 1063 |
* to provide field type for LDAP fields |
Formats disponibles : Unified diff
Weekly update of contrib modules