You are here

function content_theme_admin_content_wide in Content Theme 7

Same name and namespace in other branches
  1. 6 content_theme.admin.inc \content_theme_admin_content_wide()
  2. 7.2 content_theme.admin.inc \content_theme_admin_content_wide()

Menu callback; configures content wide themes.

1 string reference to 'content_theme_admin_content_wide'
content_theme_menu in ./content_theme.module
Implements hook_menu().

File

./content_theme.admin.inc, line 266
Admin page callbacks for the content_theme module.

Code

function content_theme_admin_content_wide($form, &$form_state) {
  $form['update'] = array(
    '#type' => 'fieldset',
    '#title' => t('Update content wide themes'),
  );
  $form['update']['content_theme_edit'] = array(
    '#type' => 'select',
    '#title' => t('Creating & editing theme'),
    '#description' => t('Choose which theme the content creating and editing pages should display in. System default theme: %system_default_theme.', array(
      '%system_default_theme' => content_theme_get_info_theme_name(),
    )),
    '#default_value' => variable_get('content_theme_content_wide_edit', '0'),
    '#options' => content_theme_get_content_wide_options(),
  );
  $form['update']['content_theme_view'] = array(
    '#type' => 'select',
    '#title' => t('Viewing theme'),
    '#description' => t('Choose which theme the content viewing pages should display in. System default theme: %system_default_theme.', array(
      '%system_default_theme' => content_theme_get_info_theme_name(),
    )),
    '#default_value' => variable_get('content_theme_content_wide_view', '0'),
    '#options' => content_theme_get_content_wide_options(),
  );
  $form['update']['actions'] = array(
    '#type' => 'actions',
  );
  $form['update']['actions']['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Update themes'),
  );
  return $form;
}