You are here

function community_tags_authcache_authcache_ajax in Community Tags 6.2

Implements hook_authcache_ajax().

Modifies footer JSON for Ajax call. Cached page, add any context needed to get user's tags as part of ajax call. The value set here will be passed to hooks in authcache_custom.php.

File

community_tags_authcache/community_tags_authcache.module, line 67

Code

function community_tags_authcache_authcache_ajax() {
  global $user, $theme_key;
  $authcache_ajax = array();
  if (_community_tags_tag_access()) {
    $authcache_ajax['community_tags'] = 1;
  }
  return $authcache_ajax;
}