summaryrefslogtreecommitdiff
path: root/modules/book
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-09-25 12:50:34 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-09-25 12:50:34 +0000
commit12f771d565c14d926697f2fbd49fb8b114f673bd (patch)
tree5932a93097c00a13b6981700dc9d0b24f705cc13 /modules/book
parentf1023e6492e3896c422e29fdd7265d3045660821 (diff)
downloadbrdo-12f771d565c14d926697f2fbd49fb8b114f673bd.tar.gz
brdo-12f771d565c14d926697f2fbd49fb8b114f673bd.tar.bz2
#160043 by chx: array_filter for book admin settings form, which is required based on http://lists.drupal.org/pipermail/development/2006-September/019917.html
Diffstat (limited to 'modules/book')
-rw-r--r--modules/book/book.admin.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/book/book.admin.inc b/modules/book/book.admin.inc
index a3b232c54..8aa662592 100644
--- a/modules/book/book.admin.inc
+++ b/modules/book/book.admin.inc
@@ -27,7 +27,6 @@ function book_admin_overview() {
* @ingroup forms
*/
function book_admin_settings() {
-
$types = node_get_types('names');
$form['book_allowed_types'] = array(
'#type' => 'checkboxes',
@@ -45,6 +44,7 @@ function book_admin_settings() {
'#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'))),
'#required' => TRUE,
);
+ $form['array_filter'] = array('#type' => 'value', '#value' => TRUE);
$form['#validate'][] = 'book_admin_settings_validate';
return system_settings_form($form);
}