function tac_lite_admin_scheme_form_submit in Taxonomy Access Control Lite 7
Same name and namespace in other branches
- 6 tac_lite.module \tac_lite_admin_scheme_form_submit()
Submit function for admin settings form to rebuild the menu.
1 string reference to 'tac_lite_admin_scheme_form_submit'
- tac_lite_admin_scheme_form in ./
tac_lite.module - Returns the form for role-based privileges.
File
- ./
tac_lite.module, line 338 - Control access to site content based on taxonomy, roles and users.
Code
function tac_lite_admin_scheme_form_submit($form, &$form_state) {
variable_set('menu_rebuild_needed', TRUE);
// Rebuild the node_access table.
if ($form_state['values']['tac_lite_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');
}
variable_del('tac_lite_rebuild');
// We don't need to store this as a system variable.
}