You are here

function ctools_theme_ctools_access_summary in Chaos Tool Suite (ctools) 7

Same name and namespace in other branches
  1. 6 plugins/access/theme.inc \ctools_theme_ctools_access_summary()

Provide a summary description based upon the checked roles.

1 string reference to 'ctools_theme_ctools_access_summary'
theme.inc in plugins/access/theme.inc
Plugin to provide access control based on user themeission strings.

File

plugins/access/theme.inc, line 63
Plugin to provide access control based on user themeission strings.

Code

function ctools_theme_ctools_access_summary($conf, $context) {
  if (!isset($conf['theme'])) {
    return t('Error, unset theme');
  }
  $themes = list_themes();
  return t('Current theme is "@theme"', array(
    '@theme' => $themes[$conf['theme']]->info['name'],
  ));
}