function authcache_p13n_authcache_debug_info in Authenticated User Page Caching (Authcache) 7.2
Implements hook_authcache_debug_info().
Related topics
File
- modules/
authcache_p13n/ authcache_p13n.module, line 1257 - Provides methods for serving personalized content fragments.
Code
function authcache_p13n_authcache_debug_info() {
$debug_info = array();
$client_info = authcache_p13n_client_info();
$all_clients = array_map(function ($client) {
return $client['title'];
}, $client_info);
$enabled_clients = array_map(function ($client) {
return $client['title'];
}, array_filter($client_info, function ($client) {
return !empty($client['enabled']);
}));
if (empty($all_clients)) {
authcache_debug_log(t('P13n'), t('No client module enabled, markup substitution will not work.'));
$debug_info['P13n Clients'] = t('No client module enabled');
}
else {
$debug_info['P13n Clients'] = implode(', ', $all_clients);
if (empty($enabled_clients)) {
authcache_debug_log(t('P13n'), t('None of the enabled client modules is active on this request, markup substitution will not work.'));
$debug_info['Active P13n Clients'] = t('No active client module');
}
else {
$debug_info['Active P13n Clients'] = implode(', ', $enabled_clients);
}
}
return $debug_info;
}