function _tac_lite_admin_settings_submit in Taxonomy Access Control Lite 5
Same name and namespace in other branches
- 6 tac_lite.module \_tac_lite_admin_settings_submit()
- 7 tac_lite.module \_tac_lite_admin_settings_submit()
This form submit callback ensures that the form values are saved, and also the node access database table is rebuilt.
File
- ./
tac_lite.module, line 129 - Control access to site content based on taxonomy, roles and users.
Code
function _tac_lite_admin_settings_submit($form_id, $form_values) {
// First, save settings the default way.
system_settings_form_submit($form_id, $form_values);
// Next, rebuild the node_access table.
node_access_rebuild();
drupal_set_message(t('The content access permissions have been rebuilt.'));
}