You are here

function authcache_user_authcache_p13n_setting in Authenticated User Page Caching (Authcache) 7.2

Implements hook_authcache_p13n_setting().

File

modules/authcache_user/authcache_user.module, line 10
Provide profile data of logged in user as personalized setting.

Code

function authcache_user_authcache_p13n_setting() {
  return array(
    'user' => array(
      'admin name' => t('User'),
      'admin group' => t('Logged in User'),
      'admin description' => t('Provide profile data of logged in user as personalized setting'),
      'setting' => array(
        '#setting' => 'u',
        '#target' => 'authcacheUser',
        '#class' => 'AuthcacheUserSetting',
        '#arguments' => array(
          array(
            'uid',
            'name',
            'mail',
          ),
        ),
      ),
      'cache maxage' => 86400,
    ),
  );
}