function nodeaccess_grants_form_submit in Nodeaccess 7
Same name and namespace in other branches
- 5 nodeaccess.module \nodeaccess_grants_form_submit()
- 6.2 nodeaccess.module \nodeaccess_grants_form_submit()
- 6 nodeaccess.module \nodeaccess_grants_form_submit()
Submit function for nodeaccess_grants_form.
Parameters
array $form:
array &$form_state:
File
- ./
nodeaccess.module, line 459 - Provide per node access control
Code
function nodeaccess_grants_form_submit($form, &$form_state) {
if ($form_state['clicked_button']['#id'] == 'edit-search') {
$form_state['rebuild'] = TRUE;
$form_state['storage']['values'] = $form_state['values'];
}
else {
unset($form_state['rebuild']);
_nodeaccess_grants_form_submit($form, $form_state);
drupal_set_message(t('Grants saved.'));
}
}