You are here

function course_settings_appearance_form in Course 6

Same name and namespace in other branches
  1. 7.2 includes/course.settings.inc \course_settings_appearance_form()
  2. 7 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 71
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'),
      'page' => t('Page'),
    ),
    '#default_value' => variable_get('course_take_course_button_show', array()),
    '#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);
}