You are here

function apachesolr_access_clean_realm_name in Apache Solr Search 6.3

Same name and namespace in other branches
  1. 8 apachesolr_access/apachesolr_access.module \apachesolr_access_clean_realm_name()
  2. 7 apachesolr_access/apachesolr_access.module \apachesolr_access_clean_realm_name()

Helper function - return a safe (PHP identifier) realm name.

2 calls to apachesolr_access_clean_realm_name()
apachesolr_access_apachesolr_index_document_build_node in apachesolr_access/apachesolr_access.module
Implements hook_apachesolr_index_document_build_node()
apachesolr_access_build_subquery in apachesolr_access/apachesolr_access.module
Creates a Solr query for a given user

File

apachesolr_access/apachesolr_access.module, line 134

Code

function apachesolr_access_clean_realm_name($realm) {
  return preg_replace('/[^a-zA-Z0-9_\\x7f-\\xff]/', '_', $realm);
}