You are here

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

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

Parameters

string $map_to such as drupal role or og group/role:

Return value

array with validation type ('error', 'warning', 'status') and message text

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

File

ldap_authorization/LdapAuthorizationConsumerAbstract.class.php, line 360
abstract class to represent an ldap_authorization consumer 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
@file abstract class to represent an ldap_authorization consumer such as drupal_role, og_group, etc. each authorization comsumer will extend this class with its own class named LdapAuthorizationConsumer<consumer type> such as…

Code

public function validateAuthorizationMappingTarget($map_to, $form_values = NULL, $clear_cache = FALSE) {
  $message_type = NULL;
  $message_text = NULL;
  return array(
    $message_type,
    $message_text,
  );
}