You are here

function course_settings_appearance_form in Course 7

Same name and namespace in other branches
  1. 6 includes/course.settings.inc \course_settings_appearance_form()
  2. 7.2 includes/course.settings.inc \course_settings_appearance_form()

Appearance settings form callback.

1 string reference to 'course_settings_appearance_form'
course_course_handlers in ./course.module
Implements hook_course_handlers().

File

includes/course.settings.inc, line 19
Administrative settings for Course module.

Code

function course_settings_appearance_form() {
  $form = array();
  $form['course_takecourse_tab_display'] = array(
    '#title' => t('Show a "take course" tab on course nodes'),
    '#type' => 'checkbox',
    '#default_value' => variable_get('course_takecourse_tab_display', 1),
  );
  $form['course_take_course_button_show'] = array(
    '#title' => t('Show "take course" button on'),
    '#type' => 'checkboxes',
    '#options' => array(
      'teaser' => t('Teaser'),
      'full' => t('Full'),
    ),
    '#default_value' => variable_get('course_take_course_button_show', array(
      'full' => 'full',
    )),
    '#description' => t('Check to show a "take course" button on courses.'),
  );
  $form['course_disable_regions'] = array(
    '#title' => t('Disable theme regions when taking a course'),
    '#type' => 'checkboxes',
    '#default_value' => variable_get('course_disable_regions', array()),
    '#options' => system_region_list(variable_get('theme_default', '')),
  );
  return system_settings_form($form);
}