You are here

function authcache_comment_authcache_p13n_setting in Authenticated User Page Caching (Authcache) 7.2

Implements hook_authcache_p13n_setting().

File

modules/authcache_comment/authcache_comment.module, line 10
Provide personalization for the comment module.

Code

function authcache_comment_authcache_p13n_setting() {
  return array(
    'comment-num-new' => array(
      'admin name' => t('Number of new comments'),
      'admin group' => t('Comment'),
      'admin description' => t('Returns the number of new comments on a node'),
      'setting' => array(
        '#setting' => 'cn',
        '#target' => 'authcacheCommentNumNew',
        '#class' => 'AuthcacheCommentNumNewSetting',
      ),
      'cache maxage' => 600,
    ),
  );
}