You are here

function _authcache_flag_partial_id in Authenticated User Page Caching (Authcache) 7.2

Return the partial-id for this flag.

6 calls to _authcache_flag_partial_id()
AuthcacheFlagTest::testAuthcacheFlagFlagFragmentNoPermission in modules/authcache_flag/authcache_flag.test
Ensure that flags are not rendered when user lacks flag permissions.
AuthcacheFlagTest::testAuthcacheFlagFlagFragmentWithoutUnflag in modules/authcache_flag/authcache_flag.test
Ensure that flags are rendered propertly when user lacks unflag permission.
AuthcacheFlagTest::testAuthcacheFlagFlagFragmentWithUnflag in modules/authcache_flag/authcache_flag.test
Ensure that flags are rendered propertly when user has unflag permission.
authcache_flag_authcache_p13n_assembly in modules/authcache_flag/authcache_flag.module
Implements hook_authcache_p13n_assembly().
authcache_flag_entity_view_alter in modules/authcache_flag/authcache_flag.module
Implements hook_flag_view_alter().

... See full list

File

modules/authcache_flag/authcache_flag.module, line 144
Provide personalization for the flag module.

Code

function _authcache_flag_partial_id($flag) {

  // Partial fragment ids need to be strings, therefore we prefix the fid with
  // a character.
  return 'f' . $flag->fid;
}