You are here

function authcache_p13n_find_theme_functions in Authenticated User Page Caching (Authcache) 7.2

Discover theme suggestions provided by client-modules.

Parameters

string $client: The client name (e.g. authcache_ajax or authcache_esi).

Return value

array The functions found, suitable for returning from hook_theme;

See also

drupal_find_theme_functions()

Related topics

5 calls to authcache_p13n_find_theme_functions()
authcache_ajax_theme in modules/authcache_ajax/authcache_ajax.module
Implements hook_theme().
authcache_esi_theme in modules/authcache_esi/authcache_esi.module
Implements hook_theme().
authcache_form_test_theme in modules/authcache_form/tests/authcache_form_test.module
Implements hook_theme().
authcache_menu_test_theme in modules/authcache_menu/tests/authcache_menu_test.module
Implements hook_theme().
authcache_p13n_test_theme in modules/authcache_p13n/tests/authcache_p13n_test.module
Implements hook_theme().

File

modules/authcache_p13n/authcache_p13n.module, line 488
Provides methods for serving personalized content fragments.

Code

function authcache_p13n_find_theme_functions($client) {
  $implementations = array();
  foreach (authcache_p13n_theme() as $hook => $info) {
    $new_hook = $hook . '__' . $client;
    $function = 'theme_' . $new_hook;
    if (function_exists('theme_' . $new_hook)) {
      $arg_name = isset($info['variables']) ? 'variables' : 'render element';
      $implementations[$new_hook] = array(
        'function' => $function,
        $arg_name => $info[$arg_name],
        'base hook' => $hook,
      );
    }
  }
  return $implementations;
}