You are here

function authcache_p13n_add_partial in Authenticated User Page Caching (Authcache) 7.2

Add partial fragment to page.

Related topics

3 calls to authcache_p13n_add_partial()
AuthcacheP13nTestMarkup::testAddPartial in modules/authcache_p13n/tests/authcache_p13n.markup.test
Cover authcache_p13n_add_partial(), authcache_p13n_get_assemblies().
authcache_p13n_get_assemblies in modules/authcache_p13n/authcache_p13n.module
Return all assemblies for this page (including added partials).
template_preprocess_authcache_p13n_partial in modules/authcache_p13n/authcache_p13n.module
Preprocess a placeholder for a part of an assembly.

File

modules/authcache_p13n/authcache_p13n.module, line 416
Provides methods for serving personalized content fragments.

Code

function authcache_p13n_add_partial($assembly = NULL, $frag = NULL, $param = NULL) {
  $partials =& drupal_static(__FUNCTION__, array());
  if ($assembly && $frag) {
    $partials[] = array(
      $assembly => array(
        $frag => array(
          $param,
        ),
      ),
    );
  }
  return $partials;
}