| 1 |
<?php |
<?php |
| 2 |
// $Id: book.admin.inc,v 1.25 2009/11/01 12:11:10 dries Exp $ |
// $Id: book.admin.inc,v 1.26 2009/11/08 10:02:41 webchick Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 38 |
$types = node_type_get_names(); |
$types = node_type_get_names(); |
| 39 |
$form['book_allowed_types'] = array( |
$form['book_allowed_types'] = array( |
| 40 |
'#type' => 'checkboxes', |
'#type' => 'checkboxes', |
| 41 |
'#title' => t('Allowed book outline types'), |
'#title' => t('Content types allowed in book outlines'), |
| 42 |
'#default_value' => array('book'), |
'#default_value' => array('book'), |
| 43 |
'#options' => $types, |
'#options' => $types, |
| 44 |
'#description' => t('Select content types which users with the %add-perm permission will be allowed to add to the book hierarchy. Users with the %outline-perm permission can add all content types.', array('%add-perm' => t('add content to books'), '%outline-perm' => t('administer book outlines'))), |
'#description' => t('Users with the %outline-perm permission can add all content types.', array('%add-perm' => t('add content to books'), '%outline-perm' => t('administer book outlines'))), |
| 45 |
'#required' => TRUE, |
'#required' => TRUE, |
| 46 |
); |
); |
| 47 |
$form['book_child_type'] = array( |
$form['book_child_type'] = array( |
| 48 |
'#type' => 'radios', |
'#type' => 'radios', |
| 49 |
'#title' => t('Default child page type'), |
'#title' => t('Content type for child pages'), |
| 50 |
'#default_value' => 'book', |
'#default_value' => 'book', |
| 51 |
'#options' => $types, |
'#options' => $types, |
|
'#description' => t('The content type for the %add-child link must be one of those selected as an allowed book outline type.', array('%add-child' => t('Add child page'))), |
|
| 52 |
'#required' => TRUE, |
'#required' => TRUE, |
| 53 |
); |
); |
| 54 |
$form['array_filter'] = array('#type' => 'value', '#value' => TRUE); |
$form['array_filter'] = array('#type' => 'value', '#value' => TRUE); |