function book_admin_settings_validate

Same name and namespace in other branches
  1. 7.x drupal-7.x/modules/book/book.admin.inc \book_admin_settings_validate()

Validate the book settings form.

See also

book_admin_settings()

1 string reference to 'book_admin_settings_validate'
book_admin_settings in drupal-6.x/modules/book/book.admin.inc
Builds and returns the book settings form.

Archivo

drupal-6.x/modules/book/book.admin.inc, line 56
Admin page callbacks for the book module.

Código

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'))));
  }
}