Disable editing book title
This commit is contained in:
parent
07fc14091e
commit
d1fe5dac3b
1 changed files with 3 additions and 0 deletions
|
@ -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']),
|
||||
|
|
Reference in a new issue