You are here

function content_theme_get_content_node_options in Content Theme 6

Same name and namespace in other branches
  1. 7.2 content_theme.module \content_theme_get_content_node_options()
  2. 7 content_theme.module \content_theme_get_content_node_options()
2 calls to content_theme_get_content_node_options()
content_theme_admin_content_node in ./content_theme.admin.inc
Menu callback; configures content node themes.
content_theme_form_alter in ./content_theme.module
Implementation of hook_form_alter().

File

./content_theme.module, line 310
This module allows to use different themes than the site default on content creating, editing, and viewing pages.

Code

function content_theme_get_content_node_options() {
  static $options = array();
  if (!$options) {
    $options['0'] = '- ' . t('System default theme') . ' -';
    $options['-content_wide-'] = '- ' . t('Content wide theme') . ' -';
    $options['-content_type-'] = '- ' . t('Content type theme') . ' -';
    $options += content_theme_get_themes();
  }
  return $options;
}