You are here

function nodehierarchyaccess_page_form_submit in Node Hierarchy 5

Same name and namespace in other branches
  1. 6.3 nodehierarchyaccess/nodehierarchyaccess.module \nodehierarchyaccess_page_form_submit()
  2. 6.2 nodehierarchyaccess/nodehierarchyaccess.module \nodehierarchyaccess_page_form_submit()

Callback for the nodeaccess form submit

File

nodehierarchyaccess/nodehierarchyaccess.module, line 62
A module to integrate nodehierarchy and nodeaccess.

Code

function nodehierarchyaccess_page_form_submit($form_id, $form_values) {
  global $user;
  $grants = array();
  $nid = $form_values['nid'];
  $grants = _nodehierarchyaccess_get_node_grants($nid);
  _nodehierarchyaccess_set_descendant_grants($nid, $grants);
}