You are here

function authcache_preprocess_poll_vote in Authenticated User Page Caching (Authcache) 6

Save poll node id

See also

poll.module

File

./authcache.module, line 644
Authenticated User Page Caching (and anonymous users, too!)

Code

function authcache_preprocess_poll_vote(&$variables) {
  if ($variables['is_page_authcache']) {
    $variables['choice'] .= '<span class="authcache-poll" data-nid="' . $variables['form']['#node']->nid . '"></span>';
  }
}