On this page
function book_admin_settings_validate
book_admin_settings_validate($form, &$form_state)
Form validation handler for book_admin_settings().
See also
book_admin_settings_submit()
File
- modules/book/book.admin.inc, line 64
- Administration page callbacks for the Book module.
Code
function book_admin_settings_validate($form, &$form_state) {
$child_type = $form_state['values']['book_child_type'];
if (empty($form_state['values']['book_allowed_types'][$child_type])) {
form_set_error('book_child_type', 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'))));
}
}
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!book!book.admin.inc/function/book_admin_settings_validate/7.x