function _tac_lite_admin_settings_submit in Taxonomy Access Control Lite 7
Same name and namespace in other branches
- 5 tac_lite.module \_tac_lite_admin_settings_submit()
- 6 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 162 - Control access to site content based on taxonomy, roles and users.
Code
function _tac_lite_admin_settings_submit($form, &$form_state) {
$rebuild = $form_state['values']['tac_lite_rebuild'];
// Rebuild the node_access table.
if ($rebuild) {
node_access_rebuild(TRUE);
}
else {
drupal_set_message(t('Do not forget to <a href=!url>rebuild node access permissions</a> after you have configured taxonomy-based access.', array(
'!url' => url('admin/reports/status/rebuild'),
)), 'warning');
}
// And rebuild menus, in case the number of schemes has changed.
menu_rebuild();
variable_del('tac_lite_rebuild');
// We don't need to store this as a system variable.
}