Skip to content
Snippets Groups Projects
Commit 12f771d5 authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#160043 by chx: array_filter for book admin settings form, which is required...

#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
parent f1023e64
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment