You are here

function authcache_poll_authcache_p13n_fragment in Authenticated User Page Caching (Authcache) 7.2

Implements hook_authcache_p13n_fragment().

File

modules/authcache_poll/authcache_poll.module, line 10
Authcache support for poll module.

Code

function authcache_poll_authcache_p13n_fragment() {
  return array(
    'poll-view' => array(
      'admin group' => t('Poll'),
      'admin name' => t('Poll form or result'),
      'fragment' => array(
        '#class' => 'AuthcachePollFragment',
      ),
      'bootstrap phase' => DRUPAL_BOOTSTRAP_FULL,
      'cache maxage' => 600,
    ),
    'poll-result' => array(
      'admin group' => t('Poll'),
      'admin name' => t('Poll result'),
      'fragment' => array(
        '#class' => 'AuthcachePollFragment',
        '#arguments' => array(
          TRUE,
        ),
      ),
      'bootstrap phase' => DRUPAL_BOOTSTRAP_FULL,
      'cache maxage' => 600,
    ),
  );
}