You are here

function admin_block_theme in Admin 6.2

Same name and namespace in other branches
  1. 7.2 includes/admin.theme.inc \admin_block_theme()

Theme switcher admin block.

1 call to admin_block_theme()
admin_block in ./admin.module
Implementation of hook_block().

File

includes/admin.theme.inc, line 6

Code

function admin_block_theme() {
  if (user_access('select different theme')) {
    $themes = list_themes();
    if (count($themes) > 2) {
      return array(
        'subject' => t('Switch theme'),
        'content' => drupal_get_form('admin_block_theme_form', $themes),
      );
    }
  }
}