function theme_authcache_p13n_setting in Authenticated User Page Caching (Authcache) 7.2
Theme a placeholder for a personalized setting.
Related topics
5 theme calls to theme_authcache_p13n_setting()
- AuthcacheAjaxTestCase::testAjaxSetting in modules/
authcache_ajax/ tests/ authcache_ajax.test - Cover theme_authcache_p13n_setting__authcache_ajax().
- AuthcacheEsiTestCase::testEsiSetting in modules/
authcache_esi/ tests/ authcache_esi.test - Cover theme_authcache_p13n_setting__authcache_esi().
- AuthcacheP13nTestMarkup::testCustomClientMarkup in modules/
authcache_p13n/ tests/ authcache_p13n.markup.test - Cover theme_authcache_p13n_X().
- AuthcacheP13nTestMarkup::testDefaultFallbackMarkup in modules/
authcache_p13n/ tests/ authcache_p13n.markup.test - Cover theme_authcache_p13n_X default fallback markup.
- authcache_p13n_page_bottom_pre_render in modules/
authcache_p13n/ authcache_p13n.module - Pre-render callback for the page_bottom region.
File
- modules/
authcache_p13n/ authcache_p13n.module, line 241 - Provides methods for serving personalized content fragments.
Code
function theme_authcache_p13n_setting($variables) {
$setting = $variables['setting'];
$param = $variables['param'];
$clients = $variables['clients'];
$fallback = $variables['fallback'];
$context = array(
'type' => 'setting',
'id' => $setting,
'param' => $param,
'clients' => $clients,
'original' => NULL,
);
$fallback_markup = '<!-- Error: Failed to render setting -->';
drupal_alter('authcache_p13n_client_fallback', $fallback_markup, $fallback, $context);
return $fallback_markup;
}