private function LdapUserConfAdmin::isMappingConfigurable in Lightweight Directory Access Protocol (LDAP) 7.2
Same name and namespace in other branches
- 8.2 ldap_user/LdapUserConfAdmin.class.php \LdapUserConfAdmin::isMappingConfigurable()
Is a mapping configurable by a given module?
Parameters
array $mapping: as mapping configuration for field, attribute, property, etc.
string $module: machine name such as ldap_user.
Return value
bool
1 call to LdapUserConfAdmin::isMappingConfigurable()
- LdapUserConfAdmin::addServerMappingFields in ldap_user/
LdapUserConfAdmin.class.php - Add existing mappings to ldap user provisioning mapping admin form table.
File
- ldap_user/
LdapUserConfAdmin.class.php, line 906
Class
Code
private function isMappingConfigurable($mapping = NULL, $module = 'ldap_user') {
$configurable = (!isset($mapping['configurable_to_drupal']) && !isset($mapping['configurable_to_ldap']) || isset($mapping['configurable_to_drupal']) && $mapping['configurable_to_drupal'] || isset($mapping['configurable_to_ldap']) && $mapping['configurable_to_ldap']) && (!isset($mapping['config_module']) || isset($mapping['config_module']) && $mapping['config_module'] == $module);
return $configurable;
}