You are here

private function LdapUserConfAdmin::isMappingConfigurable in Lightweight Directory Access Protocol (LDAP) 8.2

Same name and namespace in other branches
  1. 7.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

boolean

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 919

Class

LdapUserConfAdmin

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;
}