Disable editing book title

This commit is contained in:
Manuel Cillero 2017-07-26 08:46:49 +02:00
parent 07fc14091e
commit d1fe5dac3b

View file

@ -237,6 +237,9 @@ function theme_book_admin_table($form) {
$form[$key]['mlid']['#attributes']['class'] = 'book-mlid';
$form[$key]['weight']['#attributes']['class'] = 'book-weight';
// Disable editing book title.
$form[$key]['title']['#attributes']['readonly'] = 'readonly';
$data = array(
theme('indentation', $form[$key]['depth']['#value'] - 2) . drupal_render($form[$key]['title']),
drupal_render($form[$key]['weight']),