You are here

public function LdapAuthorizationConsumerAbstract::validateAuthorizationMappingTarget in Lightweight Directory Access Protocol (LDAP) 7.2

Same name and namespace in other branches
  1. 8.2 ldap_authorization/LdapAuthorizationConsumerAbstract.class.php \LdapAuthorizationConsumerAbstract::validateAuthorizationMappingTarget()
  2. 7 ldap_authorization/LdapAuthorizationConsumerAbstract.class.php \LdapAuthorizationConsumerAbstract::validateAuthorizationMappingTarget()

Validate authorization mappings on LDAP Authorization OG Admin form.

Parameters

array $mapping: single mapping in format generated in normalizeMappings method.

array $form_values: from authorization configuration form.

bool $clear_cache:

Return value

array of form array($message_type, $message_text) where message type is status, warning, or error and $message_text is what the user should see.

2 methods override LdapAuthorizationConsumerAbstract::validateAuthorizationMappingTarget()
LdapAuthorizationConsumerDrupalRole::validateAuthorizationMappingTarget in ldap_authorization/ldap_authorization_drupal_role/LdapAuthorizationConsumerRole.class.php
Validate authorization mappings on LDAP Authorization OG Admin form.
LdapAuthorizationConsumerOG::validateAuthorizationMappingTarget in ldap_authorization/ldap_authorization_og/LdapAuthorizationConsumerOG.class.php

File

ldap_authorization/LdapAuthorizationConsumerAbstract.class.php, line 541
Abstract class to represent an ldap_authorization consumer behavior such as drupal_role, og_group, etc. each authorization comsumer will extend this class with its own class named LdapAuthorizationConsumer<consumer type> such as…

Class

LdapAuthorizationConsumerAbstract

Code

public function validateAuthorizationMappingTarget($mapping, $form_values = NULL, $clear_cache = FALSE) {
  $message_type = NULL;
  $message_text = NULL;
  return [
    $message_type,
    $message_text,
  ];
}