You are here

function _tac_lite_admin_settings_submit in Taxonomy Access Control Lite 6

Same name and namespace in other branches
  1. 5 tac_lite.module \_tac_lite_admin_settings_submit()
  2. 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. 2008 : Modified by Paulo to be compliant with drupal 6

1 string reference to '_tac_lite_admin_settings_submit'
tac_lite_admin_settings in ./tac_lite.module
Returns the settings form

File

./tac_lite.module, line 137
Control access to site content based on taxonomy, roles and users.

Code

function _tac_lite_admin_settings_submit($form, &$form_state) {

  // First, save settings the default way.
  system_settings_form_submit($form, $form_state);

  // Next, rebuild the node_access table.
  node_access_rebuild(TRUE);

  //drupal_set_message(t('The content access permissions have been rebuilt.'));

  // And rebuild menus, in case the number of schemes has changed.
  menu_rebuild();
}