You are here

function _authcache_authcache_example in Authenticated User Page Caching (Authcache) 7

Same name and namespace in other branches
  1. 6 ajax/authcache.php \_authcache_authcache_example()

Example of customized block info being returned

See also

authcache_example.module

File

ajax/authcache.php, line 362
Authcache Ajax Callback (authcache.php)

Code

function _authcache_authcache_example($vars) {
  include_once './includes/common.inc';
  drupal_bootstrap(DRUPAL_BOOTSTRAP_PATH);

  // Use FULL if needed for additional functions
  include_once dirname(drupal_get_filename('module', 'authcache_example')) . '/authcache_example.module';
  return authcache_example_display_block_0();
}