You are here

function course_book_admin in Course 8.3

Same name and namespace in other branches
  1. 8.2 modules/course_book/course_book.module \course_book_admin()
  2. 7.2 modules/course_book/course_book.module \course_book_admin()
  3. 7 modules/course_book/course_book.module \course_book_admin()
  4. 3.x modules/course_book/course_book.module \course_book_admin()

Course book admin form.

1 string reference to 'course_book_admin'
course_book_menu in modules/course_book/course_book.module
Implements hook_menu().

File

modules/course_book/course_book.module, line 6

Code

function course_book_admin($form, &$form_state) {
  $form = array();
  $form['book_intro']['#markup'] = t("Course books allow you to use Drupal Books as course objects.");
  $form['course_book_default_node_type'] = array(
    '#title' => t('Default node type.'),
    '#type' => 'select',
    '#options' => node_type_get_names(),
    '#default_value' => variable_get('course_book_default_node_type', 'book'),
    '#description' => t("Sets the default node type for book objects. This can be overridden whilst assigning a book to a course outline."),
  );
  return system_settings_form($form);
}