You are here

function page_theme_get_theme_options in Page Theme 6

Helper functions.

2 calls to page_theme_get_theme_options()
page_theme_admin_add in ./page_theme.admin.inc
Menu callback; adds a theme.
page_theme_menu_access_add in ./page_theme.module

File

./page_theme.module, line 144
This module allows to use different themes than the site default on specific pages.

Code

function page_theme_get_theme_options() {
  static $options = array();
  if (!$options) {
    $themes = page_theme_get_themes();
    $result = db_query('SELECT theme FROM {page_theme}');
    while ($page_theme = db_fetch_object($result)) {
      unset($themes[$page_theme->theme]);
    }
    $options['0'] = '- ' . t('Select theme') . ' -';
    $options += $themes;
  }
  return $options;
}