You are here

function authcache_p13n_admin_route_page in Authenticated User Page Caching (Authcache) 7.2

Display details for a given route.

1 string reference to 'authcache_p13n_admin_route_page'
authcache_p13n_menu in modules/authcache_p13n/authcache_p13n.module
Implements hook_menu().

File

modules/authcache_p13n/authcache_p13n.admin.inc, line 120
Administrative interface for the authcache personalization module.

Code

function authcache_p13n_admin_route_page() {
  $route_id = implode('/', func_get_args());
  $resources = authcache_p13n_request_resources();
  drupal_set_title(t('Definition for route @route_id', array(
    '@route_id' => $route_id,
  )));
  require_once DRUPAL_ROOT . '/includes/utility.inc';
  $page['definition'] = array(
    '#markup' => '<code><pre>' . drupal_var_export($resources[$route_id]) . '</code></pre>',
  );
  return $page;
}