You are here

function content_access_page_reset in Content Access 6

Same name and namespace in other branches
  1. 7 content_access.admin.inc \content_access_page_reset()
1 string reference to 'content_access_page_reset'
content_access_page in ./content_access.admin.inc
Per node settings page.

File

./content_access.admin.inc, line 88
Content access administration UI.

Code

function content_access_page_reset($form, &$form_state) {
  content_access_delete_per_node_settings($form_state['node']);
  node_access_acquire_grants($form_state['node']);
  cache_clear_all();
  drupal_set_message(t('The permissions have been reseted to the content type defaults.'));
}