You are here

protected static function AuthcacheP13nFragmentAssemblyBuilder::mapAssoc in Authenticated User Page Caching (Authcache) 7.2

Private helper method implementing drupal_map_assoc().

1 call to AuthcacheP13nFragmentAssemblyBuilder::mapAssoc()
AuthcacheP13nFragmentAssemblyBuilder::validate in modules/authcache_p13n/includes/AuthcacheP13nFragmentAssemblyBuilder.inc
Validate and sanitize a request.

File

modules/authcache_p13n/includes/AuthcacheP13nFragmentAssemblyBuilder.inc, line 91
Defines AuthcacheP13nFragmentAssemblyBuilder.

Class

AuthcacheP13nFragmentAssemblyBuilder
Content builder for personalized fragment assemblies.

Code

protected static function mapAssoc($array) {

  // array_combine() fails with empty arrays:
  // http://bugs.php.net/bug.php?id=34857.
  return !empty($array) ? array_combine($array, $array) : array();
}