function course_book_admin in Course 3.x
Same name and namespace in other branches
- 8.3 modules/course_book/course_book.module \course_book_admin()
- 8.2 modules/course_book/course_book.module \course_book_admin()
- 7.2 modules/course_book/course_book.module \course_book_admin()
- 7 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 8
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);
}