You are here

function book_access_outline_form_submit in Book access 7.2

Same name and namespace in other branches
  1. 6.2 book_access.module \book_access_outline_form_submit()
  2. 6 book_access.module \book_access_outline_form_submit()
  3. 1.x book_access.module \book_access_outline_form_submit()

Form submission callback for book_outline_form().

See also

book_outline_form()

book_access_form_alter()

1 string reference to 'book_access_outline_form_submit'
book_access_form_alter in ./book_access.module
Implements hook_form_alter().

File

./book_access.module, line 1166
Allows to set the access control for book nodes on a per book basis. Based on forum_access.module and tac_lite.module.

Code

function book_access_outline_form_submit($form, &$form_state) {
  if (isset($form['plid']) && $form['plid'] != $form_state['values']['plid']) {
    BookAccess::writeGrantRecords($form['#node']);
  }
}