function theme_authcache_p13n_setting__authcache_ajax in Authenticated User Page Caching (Authcache) 7.2
Theme function for personalized Drupal.setting retrieved using an Ajax call.
File
- modules/
authcache_ajax/ authcache_ajax.module, line 78 - Inject personalized fragments into cached pages using Ajax calls.
Code
function theme_authcache_p13n_setting__authcache_ajax($variables) {
$url = $variables['url'];
$setting = $variables['setting'];
if ($url && $setting) {
drupal_add_js(drupal_get_path('module', 'authcache_p13n') . '/authcache_p13n.js');
drupal_add_js(drupal_get_path('module', 'authcache_ajax') . '/authcache_ajax.js');
drupal_add_js(array(
'authcacheP13nAjaxSettings' => array(
$setting => url($url['path'], $url['options']),
),
), 'setting');
return '';
}
}